Add missing close parentheses to regular expressions.