Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks. If the information system or application allows the user to consecutively reuse their password when that password has exceeded its defined lifetime, the end result is a password that is not changed as per policy requirements.
Check
Verify Ubuntu 22.04 LTS prevents passwords from being reused for a minimum of five generations by using the following command: