I am trying to write the line:

`const reg = new RegExp('\.js$');`

but my VSCode deletes the `\` from my regex on save. Is this a setting, or some issue with a plugin? Searched online, but wasn't finding any relevant answers.

For reference, plugins installed are:
- Angular v5 Snippets
- Beautify
- CodeMetrics
- Debugger for Chrome
- EditorConfig for VSCode
- npm
- npm Intellisense
- Prettier
- TSLint
- vscode-icons