New GitHub issue #110369 from AhnafCodes:<br>
<hr>
<pre>
# Bug report
### Bug description:
Works :
```python
>>> fruit = {'name': 'Apple', 'price': 10}
>>> f"{fruit["name"]}"
'Apple'
```
Works :
```python
>>> f'FRUIT="{fruit['name']}"'
'FRUIT="Apple"'
```
Fails :
```python
>>> f'FRUIT='{fruit['name']}''
File "<stdin>", line 1
f'FRUIT='{fruit['name']}''
^
SyntaxError: invalid syntax
```
### CPython versions tested on:
3.12
### Operating systems tested on:
macOS
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/110369">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>