Issue title: Search and replace on files with regex, first named group does not work when referenced by name
 Issue body: Issue Type: <b>Bug</b>

When using search and replace on files (ctrl + shift + h) with regex named groups, if the first capture group is referenced by name (e.g.: ```$<cap1>``` ) all capture groups will be replaced by their respective string literals instead of the captured text. If the first capture group is referenced by position (e.g.: ```$1```) all capture groups will be replaced correctly by captured expressions.

### Steps to reproduce:

1. create a .txt file with the following contents:

```
receptor = path\to\file\receptor.txt
ligand = path\to\file\ligand.txt

cpu = 10

center_x = 10.316
center_y = 0.857
center_z = -10.54

size_x = 50
size_y = 60
size_z = 60

out = path\to\file\output.txt

log = path\to\file\log.txt

exhaustiveness = 54
```

2. open the search and replace in file interface / menu (default: ctrl + shift + h)

3. place the following regex in the search box and turn on using regular expressions (default: Alt + R ):
```
(?<rec>receptor\s*=\s*.+)(?:\n+)(?<lig>ligand\s*=\s*.+)(?:\n+)(?<cpu>cpu\s*=)(?:\s*\d+\n+)(?<cx>center_x\s*=)(?:\s*-*\d+\.\d+\n+)(?<cy>center_y\s*=)(?:\s*-*\d+\.\d+\n+)(?<cz>center_z\s*=)(?:\s*-*\d+\.\d+\n+)(?<sx>size_x\s*=)(?:\s*-*\d+\n+)(?<sy>size_y\s*=)(?:\s*-*\d+\n+)(?<sz>size_z\s*=)(?:\s*-*\d+\n+)(?<out>out\s*=.+)(?:\n+)(?<log>log\s*=.+)(?:\n+)(?<exh>exhaustiveness\s*=)(?:\s*\d+)
```

4. place the following expression in the replace box (keep line break / new lines for expected result):
```
$<rec>
$<lig>
$<cpu> 6
$<cx> 29.587
$<cy> -6.194
$<cz> -27.869
$<sx> 90
$<sy> 100
$<sz> 100
$<out>
$<log>
$<exh> 267
```

5. Press Replace All (default: Ctrl + Alt + Enter)

### Expected Result:
```
receptor = path\to\file\receptor.txt
ligand = path\to\file\ligand.txt
cpu = 6
center_x = 29.587
center_y = -6.194
center_z = -27.869
size_x = 90
size_y = 100
size_z = 100
out = path\to\file\output.txt
log = path\to\file\log.txt
exhaustiveness = 267
```
### Actual Result:
```
$<rec>
$<lig>
$<cpu> 6
$<cx> 29.587
$<cy> -6.194
$<cz> -27.869
$<sx> 90
$<sy> 100
$<sz> 100
$<out>
$<log>
$<exh> 267

```
6. replacing "$<rec>" on step 4) with "$1" (the first line) achieves the expected result

VS Code version: Code 1.65.1 (8908a9ca0f221f36507231afb39d2d8d1e182702, 2022-03-08T02:06:27.846Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD FX(tm)-9370 Eight-Core Processor            (8 x 4420)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: enabled_on<br>video_decode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|31.97GB (17.98GB free)|
|Process Argv|-n --crash-reporter-id 0dcd3bbb-dab2-421b-aedb-26c3aaa1ef05|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (41)</summary>

Extension|Author (truncated)|Version
---|---|---
rainbow-brackets|2gu|0.0.6
html-snippets|abu|0.2.1
markdown-footnotes|bie|0.0.7
turbo-console-log|Cha|2.1.7
regex|chr|0.4.0
dakara-foldplus|dak|1.5.2
jshint|dba|0.11.0
vscode-eslint|dba|2.2.2
jquerysnippets|don|0.0.1
xml|Dot|2.5.1
vscode-html-css|ecm|1.11.0
php-intellisense|fel|2.3.14
flow-for-vscode|flo|2.0.0
animate-css|Hri|1.0.0
jquery-snippets|Hri|1.0.0
regionfolder|map|1.0.17
code-beautifier|mic|2.3.3
easy-less|mrc|1.7.3
python|ms-|2022.2.1924087327
vscode-pylance|ms-|2022.3.1
jupyter|ms-|2022.2.1030672458
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.6
php-docblocker|nei|2.7.0
autodocstring|njp|0.6.1
vscode-css-peek|pra|4.2.0
prettier-vscode-space-parenthesis|sch|0.17.101
js-jsx-snippets|sky|11.0.0
php-formatter|Sop|0.2.4
webvtt-language|spa|0.0.4
guides|spy|0.9.3
code-spell-checker|str|2.1.7
code-spell-checker-medical-terms|str|1.0.14
code-spell-checker-portuguese|str|0.1.11
open-in-browser|tec|2.0.0
vscode-todo-highlight|way|1.0.5
php-debug|xde|1.25.0
ooxml-viewer|yue|1.2.0
markdown-all-in-one|yzh|3.4.0
html-css-class-completion|Zig|1.20.0
vscode-open-in-github|ziy|1.3.6


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30448491
dsvsc008:30440022
pythonvspyt640:30450168
vsbas813:30436447
vscscmwlcmc:30438804
vscgsvidc:30447482
helix:30440343
pynewfile477cf:30450039

```

</details>

<!-- generated by issue reporter -->
 Comments: 
 Comment 0: Given this (and others): 

https://github.com/microsoft/vscode/issues/127657

Has a recent update to ripgrep enabled using named capture groups in a replacement?
 Comment 1: <!-- 6d457af9-96bd-47a8-a0e8-ecf120dfffc1 -->
This feature request is now a candidate for our backlog. The community has 60 days to [upvote](https://github.com/microsoft/vscode/wiki/Issues-Triaging#up-voting-a-feature-request) the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).

Happy Coding!
 Comment 2: <!-- 7e568b0a-a7ce-58b9-b1f9-fd0231e000d2 -->
This feature request has not yet received the 20 community [upvotes](https://github.com/microsoft/vscode/wiki/Issues-Triaging#up-voting-a-feature-request) it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).

Happy Coding!
 Comment 3: <!-- 8f679c1b-b8df-69ca-c20a-0e1342f111e3 -->
:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).

Happy Coding!
{'source': 'GithubIssues', 'repo_name_with_owner': 'microsoft/vscode', 'issue_id': 1165094597, 'repo_stars': 72158.0}