As far as I know this is not possible in AD by default.
Maybe this is helpful for you: https://specopssoft.com/product/specops-password-policy/#create-compliant-password-policies
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten