[Javascript] Thoughts on applying Regex
You don't really need to apply a really complex regex for one validation, instead you can combine multi regex together to fulfilll the task.
const regex = /^[\w!@$%^&*-+]{8,}/.test(password)
&& /[a-z]/.test(password)
&& /[A-Z]/.test(password)
&& /[\d]/.test(password)
&& /[!@$%^&&\-]/.test(password)