Passwords regex issue

We initially used the following password regex:

^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$
 

This worked as expected, enforcing a minimum password length of 8 characters, including at least one uppercase letter, one lowercase letter, one digit, and one special character from a limited set.

Now, we want to:

  1. Increase the minimum password length to 12 characters.
  2. Expand the allowed special characters to include additional symbols like [ ].
  3. Set the maximum password length to 1000 characters.

To accommodate these requirements, we updated the regex as follows:

^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*\-_=+{}[\]|:;"'<>,.?]).{12,}$

once we done these changes registration process is not working it is also not throwing any error . This expression is valid on  https://regex101.com/r/EozM0X/2 .

And also we need to increase max length of password to 1000 characters