The regex used to match the versions is
```js
const regex = /(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)(-(?<preRelease>[\w.]+))?(\+(?<build>[-\w.]+))?/
```
And they replace what was matched.
Closes https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/2121