Squiggly line false positive

I’m facing a small issue in which some lines of code are being highlighted as errors by intellisense and they are false positives. How can I get rid of them or at least have some sort of fix for it as it may at times be confusing.