title: Regex to match anything between = object and (
body: <p>I'm developing a VS Code extension to support a new language, and for some syntax highlight I want to match any text between <code>= object</code> and <code>(</code>.</p>
  
  <p>I tried the following Regex:</p>
  
  <pre><code>{
      "name": "entity.name.class",
      "match": "(?&lt;==\\s*object).*?(?=\\()"
  },
  </code></pre>
  
  <p>But when I add this to my grammar file it breaks all the other rules that were working, everything turns white again.</p>
  
  <p>That Regex <code>(?&lt;==\s*object).*?(?=\()/g</code> works on <a href="https://regexr.com/" rel="nofollow noreferrer">https://regexr.com/</a> with the following text:</p>
  
  <pre><code>!var = object REAL()
  !var = object BORE(!bore)
  !var =object REAL  ()
  !var =object BORE  (!bore)
  </code></pre>
  
  <p>VS Code doesn't give me any exception or hint why this Regex is not working, does anyone have a clue on why the Regex is not working in VS Code?</p>