Perhaps you may either get lucky by trying suggested paths in
this support article:
If you can't reset your Mac login password - Apple Support
<https://support.apple.com/en-us/HT212190>
Or take the MacBook Pro to an 'apple authorized service provider'
if not an authorized Retail Apple store, & with an Appointment; be
sure have proof-of-purchase in your possession; they should help.
Genius Bar Reservation and Apple Support Options - Apple
//www.apple.com/retail/geniusbar/
[Ahead of travels, see this article ^ to arrange scheduled meeting.]
You may figure some means to restart the MacBook Pro into
macOS Recovery from the instruction from first link; if lucky.
