New GitHub issue #110259 from tusharsadhwani:<br>

<hr>

<pre>
# Bug report

### Bug description:

In accordance with the spec, the following code works:

```pycon
>>> x = 1
>>> f"___{
...     x
... }___"
'___1___'

>>> f"___{(
...     x
... )}___"
'___1___'
```

But the following fails:

```python
f"__{
 x:d
}__"
```

This gives:
```
  File "<stdin>", line 1
 x:d
SyntaxError: unterminated f-string literal (detected at line 2)
```

Is this intended behaviour? This is not clarified in the PEP.

---

Similarly,

### CPython versions tested on:

3.12

### Operating systems tested on:

macOS
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/110259">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>