In Windows 11, I suggest you to use a Microsoft account which allows you to change its password at any time without logging in and only use your registered phone number.
If you used a local account and need to reset the forgotten password, the official ways are: Use an admin account available in your Windows 11, answer the security questions shown on the sign in screen after you logging failed, use a password reset disk which you created for the account.
Of course, these tasks are easy to complete. If the tips mentioned above did not work for you, you may consider resetting your Windows 11 to factory.