Which model exactly? Silicon Macs use Filevault.
Set a firmware password on your Mac - Apple Support
If you forgot the firmware password
If you can't remember your firmware password, schedule an in-person service appointment with an Apple Store or Apple Authorized Service Provider. Bring your Mac and its original receipt or invoice as proof of purchase.
FileVault recovery options - Apple Support (GU)
FileVault recovery options
If you turn on FileVault for your Mac, your information is not accessible unless you first log in with your password. When you turn on FileVault, you choose a way that you can unlock your startup disk if you ever forget your login password: either with the Apple Account you use for iCloud, or with a recovery key that’s created for you.