Or you can perform a firmware "Restore" which will reset the security enclave & firmware, erases the SSD and pushes a clean copy of macOS onto the internal SSD (this latter option requires access to another Mac running macOS 12.4+ last time I checked, but that OS requirement may increase ...