Recovering a linux partiton on a secondary drive

I dual boot my system, I have 2 drives that I use with Linux and 2 drives that I use with Windows.

I was messing around with a portable drive enclosure and when I started windows disk manager it asked me to bring a disk online and enable it, which I did with GPT partition. I thought I was bringing online the drive in the portable enclosure, but in fact I brought online my secondary linux disk which has a bunch of stuff on it.

I didn’t format the disk, I left it as is, right now linux thinks that the disk is empty, is there any way to recover the linux ext4 partition and/or the data on it?

I was able to retrieve the data after I used fsck.ext4 -v /dev/nvme2n1.
Unfortunately the GTP table was corrupted and I was not able to recover it using gdisk.

After each POST the system would complain about the corruption and halt the boot. I would have to go to BIOS and exit without saving changes to continue the boot.