You have to install the factory-original version, not the latest.
what model-year MacBook Pro?
On an Intel-based Mac, you can use Shift-Option-Command-R during startup to be offered the macOS that came with your Mac, or the closest version still available. Or you can use Option-Command-R during startup to be offered either the latest macOS that is compatible with your Mac, or in some cases the macOS that came with your Mac or the closest version still available.
If the installer doesn't see your disk, or it says that it can't install on your computer or volume, you might need to erase your disk first.
How to reinstall macOS - Apple Support
.