Edit: Query Replace Regexp…
edit.queryReplaceRegexp Query-replace where the search string is a regular expression; $1 refers to a group.
How to run it
Open the command palette (M-x in the Emacs keymap) and search for Edit: Query Replace Regexp…, then press Enter. It also has a default keybinding:
| Emacs | C-M-S-5 |