What you can try
- Face ID or Touch ID: if it was on for Notes, it may still open the locked notes.
- Other devices: the custom password is the same on every device with your Apple Account; try one where you're already in.
- Old passwords: Notes shows a hint if you set one.
Reset (for future notes only)
Settings > Apps > Notes > Password > Reset Password. The new password applies to notes you lock from now on; it doesn't open notes locked before (Apple).
Avoid it next time
- Use your device passcode instead of a custom password, if nobody else knows it.
- Save custom passwords in a password manager such as Apple's Passwords app (Apple).
Secret Calculator Vault Photo (Calc+) keeps passwords and notes in a vault behind a calculator, opened with your code or biometrics.