This can happen with a broken version of Angular Language Service.
As of March 2025 it works with 19.0.4 but not anymore with 19.1 & 19.2 (see related github issue: https://github.com/angular/vscode-ng-language-service/issues/2149
You can revert to a previous version in VSCode by opening the extension menu: