Syntax highlighting not working for variables, functions, and some types

Syntax highlighting not working for variables, functions, and some types.
Cursor version 0.49.6, Windows 11.

Using any theme (eg. the Dark Modern theme), variables (except function parameters), functions, and some types appear in grey instead of the color set by the theme.
I’ve tried disabling all extensions (including/excluding ms-python) and the problem persists.

Also it is not possible to override the colors of variables, functions, and some types with the settings.json.
To reproduce, open the User settings.json , and add this:

"editor.tokenColorCustomizations": {
    "variables": "#f00", // does not work (only works for function parameters)
    "functions": "#f00", // does not work
    "comments": "#f00",  // it works
    "keywords": "#f00", // it works
    "numbers": "#f00", // it works
    "strings": "#f00", // it works
    "types": "#f00", // only works for some types
},  

It works in VS Code but not in Cursor.