If something has been overwritten on the disk, you have almost no chance of recovering the old one. There are probably only a few places where you can recover parts of files from something that has been completely overwritten.
You are not the first and you will not be the last to face the problem of data loss. This is a very common situation among users and you can encounter them at any time. Therefore, instead of falling into such situations, always make a backup copy of the updated data. You can also use programs that will restore your files. For example, you can find one of the programs on this site https://ditchnet.org/data-recovery/best-free-data-recovery-for-mac/. This article helped me and I think it will help you.
I always turn to specialists for help. Everyone should do what they can. Why would you waste your time and effort on solving a problem that you don’t understand, if there is a specialist who can solve this problem faster and better. https://www.kindgeek.com/ often helped me out. I hope that someone can use this information.