Treat trailing parentheses in new parser similar to old parser
Created by: rvantonder
We have this autofix logic in the old parser that will escape trailing parens in a regex string. This isn't done in the new parser--the new parser instead requires the trailling ( to be escaped. When it is not escaped, it treats the input literally (bug).