As @dandavis said in a comment, escaping the dash works (no need to escape parentheses, though).
If you try to run the code
/[()-\s]+/
you get
SyntaxError: invalid range in character class
That's because Firefox is trying to use the dash as a range character, not dash.
To fix it, you can:
- Escape the dash:
/[()\-\s]+/
- Place the dash at the beginning or end:
/[-()\s]+/
,/[()\s-]+/