x6zm Here is what you actually need to do right now:
STOP writing anything to that drive. Unplug it if you have to, or just leave it alone.
Download TestDisk (it's open-source and free). Don't use commercial crapware that charges $80 just to see your files.
Run TestDisk, select your disk, choose Intel/PC partition or EFI GPT (depending on how it was formatted), and run Analyse -> Quick Search.
90% of the time, TestDisk will find the old partition boundaries by scanning for file system magic numbers (like NTFS or exFAT headers) and let you restore the partition table instantly without moving a single actual byte of data.