macOS system does not support the old multi-pass erase on SSDs.
I think there is third-party software that will do that extended format process, even on SSDs, but I have not searched for that kind of utility (not sure)
One method that some use:
Turn on FileVault, and let that finish encrypting your drive. (If FlleVault is already turned on, just leave it as is.)
Format the drive, while still encrypted, then reinstall macOS.
The drive was encrypted, so any attempt to recover data from the erased drive will first encounter that scrambled data, and will need something like NSA level work to do anything practical with the old data.
Installing macOS on top of that encrypted, then erased volume would (again) add to the difficulty of ever retrieving anything, let alone specific kinds of data.