Set view to Outline > Group by Project, add text filter… resulting matching items cannot be collapsed.
Also previously collapsed matching items are auto-expanded even when children do not match the text filter. I don’t think that is the intended behavior (it should only expand if the child matches the text filter too).