https://www.easeus.com/
Data recovery software.
If the hardware isn't completely dead, you maybe able to use this to recover your files.
As with any data, always plan for the inevitable of losing it, therefore backup, backup, and backup. Programs can generally be reinstalled and recovered with few issues, however, data cannot, therefore you do what you can to protect your data from disaster, and the protection for your data is backing it up diligently. Depending upon how critical the data is, you may want to invest in an outside storage facility for your backup media, or even a backup cloud service.
Data recovery, outside of the inexpensive software listed above, is expensive. In the late 1990s, I used a hard drive recovery company to retrieve data from a failed hard disk. The data on the drive was critical for a project at the time, being a nearly complete book ready for output. The cost to recover the data was well over $1,000 USD in the late 1990s, and sadly the drive could not be recovered due to damage to the platters. The money was refunded, but the drive was still dead. We did, however, have a backup. It was an older backup, done the weekend before, but we had the backup. Due to the book being nearly completed, the author was hoping to recover it and output. She ended up redoing the last few chapters and this whole process delayed the book a month. (We were told right away, within days, that the drive was dead).
In 2010 a vice president at the company I worked for, needed his hard disk recovered due to some very important information on the drive. This was not normally done, but given the highly critical data on the drive, the device was sent out for repair. The minimum charge to recover the data was $680 based on the information given to the company. The drive was recovered and the cost was close to $3,000 due to the clean-room recovery necessary to recover the media. The bricked drive was returned to us, albeit, dead anyway and not under warranty.
I'm not sure if you want to go to this length for this kind of data, but if you do research hard disk recovery services. Sadly it's been too long for me to recall what company I contacted in both instances to tell you what it was.