Trim off surrounding `[]` when parsing terminal hover links

Terminal has to accept `[` and `]` as valid word parts, due to
`[slug].tsx` being a valid file name.
Yet, terminal has to exclude these to match paths in strings like
`[/some/path/[slug].tsx]`.
7c498feb85Kirill Bulatov committed on 8/29/2023, 7:40:20 AMparent9aad602
1 file changedLine totals unavailable