Do you have another Mac and a Thunderbolt cable? If so, start up your MacBook Pro while holding the T key. This will boot your MacBook Pro into Target Disk Mode, which allows you to view and modify the files on your MacBook Pro from another Mac. A battery indicator and the Thunderbolt icon should appear. Connect your MacBook Pro to your other Mac, then, on your other Mac, enter your login password for the MacBook Pro when prompted. You should now be able to view the files on your MacBook Pro using your other Mac. Use Migration Assistant on your other Mac to transfer user accounts, applications and other stuff from your MacBook Pro, as detailed in this article: How to move your content to a new Mac - Apple Support
Once you have transferred everything from your MacBook Pro, eject it from your other Mac, then press and hold the power button on your MacBook Pro to turn it off. Then, boot it into Recovery Mode by holding down Command-R while turning it on. The Apple logo and a progress bar should appear. When the Utilities menu pops up, choose Disk Utility, then select Macintosh HD and erase it. (You will lose all data that you didn't transfer!) Select Mac OS Extended (Journaled) as the format (unless you can only choose from APFS, then select APFS). When erasure is complete, quit Disk Utility, then choose Install macOS (or Reinstall macOS). Choose Macintosh HD as the target volume and let the installer do its work. When the setup assistant appears, progress through it until you're prompted to transfer your data. Choose "From a Mac, Time Machine backup, or startup disk". On your other Mac, open Migration Assistant again, but this time choose "To another Mac". You will then be guided through the process of restoring your data onto your MacBook Pro. Once the setup assistant is completed, your MacBook Pro should now boot properly.
Hope this helps!