JS Find JSON strings in string : Not a repeat

The answer to the question Find JSON strings in a string meets my needs perfectly in regex101 but when I implement it in JavaScript I get an error that says invalid character in regular expression after (?  Can anyone suggest a modification to that regex?