Hello @Leah Peter
If you're locked out of a system that you have the legal right to access, you might need to consider reinstalling Windows, but this would result in data loss unless you have backups.
If you use a Microsoft account to sign into your Windows 11 system, you can try resetting the password through Microsoft's account recovery process on another device.
Best regards,
Karlie Weng