Hi Bogdan,
There is no possible way to change the password complexity within Office 365. However, you can ban common passwords:
Password policy recommendations for Microsoft 365 passwords
It is recommended that you enforce MFA.
If this is helpful please accept answer.