Recovering deleted data from hard drive

Hi! So, I’m new at Umbrel, and wanted to see if I could use it to make a file server. So when I started it from my Raspberry Pi 4, I made the dumb decision of plugging in my 1TB hard drive, which already had all of my files from my other RPi file server image. Next thing I know, Umbrel seems to have formatted the drive and deleted all of my files. I had no idea it would do that, and would really like to get my files back. Is there any way to recover my files?