title: f-string: unmatched '(' in line with function call
body: <p>I'm trying to use f-strings in python to substitute some variables into a string that I'm printing, and I'm getting a syntax error.
  Here's my code:</p>
  <pre><code>print(f&quot;{index+1}. {value[-1].replace(&quot;[Gmail]/&quot;, '')}&quot;)
  </code></pre>
  <p>I only started having the problem after I added the replace. I've checked plenty of times and I'm certain that I'm not missing a parenthesis. I know that there are plenty of other ways to accomplish this, some of which are probably better, but I'm curious why this doesn't work.</p>