remove configuration profile macos
I've been setting up the authentication to my MacBook account via smart card via this tutorial: https://cyb3rtus.medium.com/using-a-yubikey-as-multi-factor-authentication-for-macos-7698811cffc0 and when I logged out to test I was not able to log in back. Passwords are not accepted with the SmartCard connected. I have added a configuration profile before logging out and I think it is the cause. Now, every time I try to log in it throws "This account must usr SmartCard to log in".
I tried to clear the profile via Terminal in Recovery Mode like described in Configure macOS for smart card-only authentication - Apple Support
I tried re-installing macOS, didn't help.
I would be grateful if someone could help me with this issue asap (I don't want to nuke the disk).
Maybe there is a way to create a new user via Recovery Mode to re-configure the "locked" user?
Thank you!