Formatting will permanently destroy your recovery chances. The truth is, your photos, videos, and documents are almost certainly still there - your computer just lost the ability to find them.
Accidentally formatting your SD card on Windows and Mac, and losing all those photos, videos, or important files, would feel ...