title: Invalid regular expression: invalid escape \ sequence, Postgres, Django
body: <p>I'm trying to escape a string <code>яблуко*</code> for Postgres regex query:</p>
  
  <pre><code>name = re.escape('яблуко*')
  Model.objects.filter(name__iregex='^%s' % name)
  </code></pre>
  
  <p>This gives me:</p>
  
  <blockquote>
    <p>Invalid regular expression: invalid escape \ sequence</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>
  
  <p>P.S. I know that I can do it with <code>istartswith</code>, just wondering why regex is not working.</p>