Password regex problem

Hello,
I tried to change Password Regex for my registration form to allow any characters in password, but the password need to be 6-32 characters long.
I set it to: {6, 32} but it doesn’t work at all. When I try to register with password (for example) test123, I am still getting error that I need to use at least one lowercase, upercase and number. How to fix this becouse it’s so freaking anoying?

Don’t you need a period before all that: .{6,32}?

It wasn’t period in default regex scheme, but in my case whey I writed it, it’s works now, thanks!