Password Regex is not working for user model

[details=“System Information”]

  • Strapi Version: 4.1.7
  • Operating System: windows 10
  • Database: postgresSQL
  • Node Version: 16.13.1
  • NPM Version: 8.1.2
  • Yarn Version:

Path :- src\extensions\users-permissions\content-types\user\schema.json

I have my user model in above mention path but it not validate the password field that is created by default

Code snippet for the password section

“password”: {

  "type": "password",

  "minLength": 6,

  "configurable": false,

  "private": true,

  "required": true,

  "validations": {

    "maxLength": 12,
     "regex": "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{8,12}$",
    "message": "The password must contain at least 8 characters including one uppercase letter, one lowercase letter, and one digit."

  }

Thank you in advance but i need urgently as the backend is in the production also