VSC adding project name as a field to package.json

I’m facing an issue where the following keeps appearing in the dependencies section of my package.json: "myProjectName": "file:"
This also modifies my package-lock.json file, adding an entry like this:

"node_modules/myProjectName": {
  "resolved": "",
  "link": true
}

Each time I manually remove these changes, they reappear when I open the project in VSC. This behavior doesn’t happen in other IDEs or editors, so it seems to be specific to VS Code.

I tried dissabling all the extensions, updating VSC, reinstalling, checking for symlinks.