How to reproduce:
1. Open the attached project "IN-55241.zip"
2. Open Assets/Scenes/SampleScene.unity
3. Enter Play Mode
4. Open Edit>Search All...
5. Enter "layer:10" in the Search Unity bar
Expected results: "GameObject" in the "DontDestroyOnLoad" Scene is found
Actual results: "GameObject" in the "DontDestroyOnLoad" Scene is not found
Reproducible with: 2021.3.30f1, 2022.3.10f1, 2023.1.14f1, 2023.2.0b11, 2023.3.0a6
Reproducible on: Windows 11 22H2
Not reproducible on: No other environment tested