Edit: I was able to recover my partitions by creating new partition starting and ending with same exact sectors.
I was copying files from my previous installation to my new Gentoo installation. After I was done. I ran wipefs on /dev/nvme0n1 thinking it is my old nvme drive which is connected through usb. I am in disbelief. Lost all of my configuration files. My perfect installation of gentoo. Just gone. How do I never make such mistake again? Thankfully I had backup of passwords file. Rest is gone. I am sad.
The whole drive? Not just a partition? No snapshots?
All I can say is that I’ve done similar before, and done exactly what you did, in times before backups were a thing for home gamers; when doing backups meant owning an expensive tape drive and diligence. You’re not alone.
I did test disk on the drive and recoverd my boot partition. Seems like the data hasn’t been touched. The problem now is recovering the luks header. As my root partiton was encrypted with luks.