Is it possible to recover an erased Mac SSD partition?
If you have a standard formatting (I assume it is hard to believe) then the chances are that you can restore it.
There are several forms of erasing a data carrier, including deleting the table of contents of a data carrier and erasing individual sectors of a volume.
Since mostly only the table of contents is deleted with a quick format, the data is still on the SSD, only the SSD or the operating system can no longer find any files.
It is therefore possible to restore the files, if you have restored the files, it is advisable to reinstall the macOS operating system, as sensitive files may have been damaged and the system does not work properly.
I use the Disk Drill program to create data. Please correct me if it's not good software