Steps to reproduce:
- Create a new project using the 3D URP template
- Drag any present GameObject from Hierarchy to Project window to create a prefab
- In the Project window, right-click on the asset and click Rename
- Rename it to "test'[]"
- Right-click on the asset and select "Find References in Scene"
- Observe the Console
Actual results: "SearchExpressionParseException: The string "'test[].prefab" is not closed correctly" error is thrown
Expected results: Expressions are handled with no errors, search is performed
Reproducible with versions: 6000.3.22f1, 6000.5.10f1, 6000.6.0f1, 6000.7.0a6
Tested on (OS): macOS 26.5, Ubuntu 24.04
Notes:
- Both an apostrophe and square brackets must be present in the name. Neither reproduces alone.
- Order does not matter - both test'[] and []test' reproduce
- The full asset path is used to build the query, so if folder contains "[]" combined with an apostrophe in the filename, the issue reproduces too
- Does not reproduce with legacy hierarchy