VSCode formatting and autocomplete does not work as desired

I have a problem with my VSCode. The line from the widthImage downward remains unformatted. Autocompletion does not work from there downwards. This is really getting annoying. Restarting my IDE does not help either. This only happens when I use fragments <> </> or use the ? operator to check the object’s null state. Any help will be really appreciated. Thank you. Please find the attached screenshot below.enter image description here