I would like to see how Google Sheets checks whether a regular expression is valid (according to the re2 specs). For example, each time a character is entered in a regex, Google Sheets will check that the regex is valid:
How can I see what JS function or so is being called to validate the second parameter of this? I tried using the Performance tab in Chrome dev tools but was having difficulty locating the function.

