This regular expression
/\\(.*\\)/
won\'t match the matching parenthesis but the last parenthesis in the string. Is there a regular expression
Regular expressions are not powerful enough to find matching parentheses, because parentheses are nested structures. There exists a simple algorithm to find matching parentheses, though, which is described in this answer.
If you are just trying to find the first right parenthesis in an expression, you should use a non-greedy matcher in your regex. In this case, the non-greedy version of your regex is the following:
/\(.*?\)/