Do not let anything format the drive, even if it insists.
You can try running recovery software on the drive, like Recuva
and let it see if it can access the files.
In the future, please keep in mind that important files should never be keep just on one device. The more copies of the important files you have, stored on separate devices then the safer those files are.