User Management Component Password Validate

When using the user management component to edit the current user, is there a way to validate the password? like make sure the entered password has atleast the specified minimum number of characters, and that it includes a number, special character etc?

And how would it validate if the user has entered a previously used password?

I was looking at system.security.validateUser but I don't think that's what I'm looking for.

The only 'source of truth' that's reliable is the backend, so the component just takes whatever the user gives it and attempts to make the change to the user via a request to the backend. If the gateway rejects that for any reason (such as not meeting complexity requirements, recycling, etc) it will return an error, and the component then displays that to the local user. There's no current support for frontend validation of password changes.