I'm using helix, but I believe the same would happen in neovim too.
phpactor had the same issue, they fixed it by adding "trim_leading_dollar" configuration option, but maybe this language server could find a different way to fix this without configuration?
see: https://phpactor.readthedocs.io/en/master/lsp/vim.html#two-dollars-on-variables