Sanitize another pair of brackets when hovering over a path in the terminal (#23776)

Closes https://github.com/zed-industries/zed/issues/23774

Release Notes:

- Improved terminal hover word matching
a5957bfaebKirill Bulatov committed on 1/28/2025, 2:03:48 PM· committed by GitHubparentb74a273
1 file changedLine totals unavailable