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.
I have nothing to offer but some sympathy and one advice: I have two critical backups running: my personal files and the various folders containing my config files.
As I learned more or less the exact same way you just did how critical it is to backup those files too as, losing them by formatting my drive, I instantly realized they’re as personal and important as my ‘real’ files are.