Um, I just want to interject here......
im going to post these three questions again:
1) What year is your MacBook Pro?
2) Do you have another Mac?
3) Do you have an extra external HDD or SSD?
just because your OS is toast/corrupted, it doesn’t mean that all the data is gone.... depending on the year of your mbp , you may be able to pop out the ssd inside, hook it up to a sata to USB cable, then plug that Sata to USB cable into a different computer to salvage your data. If your ssd is removable, this is cheap and easy to do. Regarding question 2 above, if you have another Mac and a particular kind of cable(thunderbolt), you can boot The Mac with the corrupted OS to target disk mode, connect your corrupted OS Mac to a healthy Mac via thunderbolt cable, and extract your data this way.... also not so expensive. Regarding the 3rd question, if you own an external ssd or hdd and have a macOS install usb stick, you can install macOS on an external drive, boot to the external drive, and then extract your data once you are booted to the external drive. This is also really easy to do.
if you have lost important data with your OS crashing, please do not listen to the users here telling you to immediately wipe and reformat your drive. There are multiple, cheap and easy ways to try and salvage your data before erasing your drive and starting over. If you’ve lost valuable data, exhaust all of your salvage options before erasing the drive.