Some Linux distros started shipping some brain-dead garbage that locks your user if you enter your sudo password wrong a few times. It doesn’t even give you any feedback, sudo just starts saying you’ve entered an incorrect password even if you type it correctly.

Fortunately, you can still become root using su. After that, just run the command faillock --reset and it should unlock your account.