Reproduction steps:
1. Create a new project
2. GameObject > UI > Text - TextMeshPro
3. Press “Import TMP Essentials” button in TMP Importer window
4. Select the newly created “Text (TMP)” GameObject and set Width to 25 in the Rect Transform
5. Press “Add Component” button, add Content Size Fitter and set Vertical Fit to Preferred Size
6. Set the Text field to any two words (e.g. “text text”) and observe the text wrapping into several lines in the Scene view
7. Paste “[ -N]” to the Text field
Actual result: Editor freezes permanently and has to be force quit
Expected result: Editor doesn’t freeze and the text is wrapped
Reproducible with: 6000.0.0f1, 6000.0.84f1, 6000.3.24f1, 6000.6.2f1, 6000.7.0b1, 7000.0.0a1
Reproduced on: Windows 11, macOS Tahoe 26.6 (M4)
Note: Issue is not reproducible when text is typed in instead of pasted in