Properly filter out the greedy bracket pairs (#44022)

Follow-up of https://github.com/zed-industries/zed/pull/43607

Release Notes:

- N/A
ad51017f20Kirill Bulatov committed on 12/3/2025, 8:27:55 AM· committed by GitHubparent2bf4787
2 files changedLine totals unavailable