Fix missing USB drive (Linux) [duplicate]

Recently found USB remaining on after Linux computer shutdown, so I removed. It was then plugged in to a Windows 11 machine, which displayed "Please insert a disk into drive". When plugged back into Linux it does not appear in Files, however when viewed in Drive Management it shows as a different name, apparently in /dev/sdc. Size and Contents parameters are missing, as is media, and the partition display shows “No Medium”. I have tried testdisk, but it does not appear, insted with my 1tb HDD showing in /dev/sdc. Most of my code is saved here, so how should I go about recovering it?