title: Regular Expression to find word by specific symbols
body: <p>I have a string:</p>
  
  <pre class="lang-js prettyprint-override"><code>const str = 'DELETE FROM "organization" WHERE "name" = $1 AND "metadata" = $2 AND "id" = $3';
  </code></pre>
  
  <p>I need to find <code>"metadata"</code> word to modify it. I only know that there is <code>= $2</code> after <code>"metadata"</code> word.</p>
  
  <pre class="lang-js prettyprint-override"><code>const regex = RegExp(/ = $2/); // just to show what I have
  const foundWord = someMagicWithRegex(str, regex); // "metadata"
  const newString = str.replace(foundWord, `${foundWord}::text`);
  console.log(newString);
  
  'DELETE FROM "organization" WHERE "name" = $1 AND "metadata"::text = $2 AND "id" = $3'
  </code></pre>
  
  <p>How <code>regex</code> should look? (if its possible)</p>