Site icon Hip-Hop Website Design and Development

How can I apply custom sanitization to new usernames?

I have a WooCommerce module creating WordPress usernames on my behalf. I want to make sure those usernames are sanitized according to my rules, which are stricter than the WordPress requirements.

How can I hook / override sanitize_user to use my custom rules?