How to REGEX password

i want to set rules for password (at least 8 lenght, 1 Lowercase, 1 Uppercase, 1 Digit and 1 char like (!@#$-) )

^(?=\S*[a-z])(?=\S*[A-Z])(?=\S*\d)(?=\S*[^\w\s])\S{8,}$

Use the regex helper inside OB2 web