search: Escape seeded project search query in regex mode (#61335)

Fixes what https://github.com/zed-industries/zed/pull/57748 does for
buffer search.

When project search is deployed with regex mode enabled and the query is
seeded from the editor's selection or the word under the cursor, that
text is literal, so regex chars in it (e.g. `.` in `z.d`) are now
escaped instead of being interpreted as regex syntax. This follows how
VSCode handles it.

Release Notes:

- Fixed project search queries seeded from the current selection being
interpreted as a regular expression instead of literal text when regex
mode was enabled.
3ad8086ee8Smit Barmase committed on 7/21/2026, 7:39:25 AM· committed by GitHubparent6a8f5a3
3 files changedLine totals unavailable