title: Found non-literal argument to RegExp Constructor - Eslint issue
body: <pre><code>const str = 'Test test1 test2'
  const pat = 'test';
  const re = new RegExp(pat, 'i'); //Found non-literal argument to RegExp Constructoreslint(security/detect-non-literal-regexp)
  const result = str.replace(re, &quot;abc&quot;);
  console.log(result);
  </code></pre>
  <p>Please help me to solved this.Thanking you in advance!</p>