Express validation help needed


im struggling with validating my password with a special character, i havent found much in previous tutorials.

please see images below:

this code([-+=_!@#$%^&*.,;:’"<>/?`~(){}\|\s])/) doesnt work in there, ive tried .matches() and .symbol() as well.
i need to know how to write code for {specialchar: …}

or i must put validation code in user.js image below?