I believe this is where the issue originates from Support TypeScript 4.4 · Issue #2802 · SonarSource/SonarJS · GitHub
Essentially the issue comes up after updating to the latest typescript version.
You can still keep the latest ts version (4.4.3 currently) and the scanner will correctly identify lines of code if you comment out the useUnknownInCatchVariables and exactOptionalPropertyTypes options in tsconfig if that works out for you, but it is obviously just a short term solution.
Also find this relevant topic TypeScript: useUnknownInCatchVariables compiler option causes main branch to show up empty