JavaScript Security Best Practices

What's the security risk of using a regular expression with user input?
const userPattern = new RegExp(userInput);
Next Question (16/20)