Yes, it is a limitation of the parser that formats the code which has to operate in real time and not slow the IDE so it cannot be super sophisticated.
I realized that was my habit to type "pub" and press "Enter", intellisense/auto-complete add "Public Sub" for me to continue. That's where the issue appears.