Comments inside Code

When inside a Code using “```” if there is a comment using # everything looks good but when you append double quotes " " in that commented line, then the comment becomes a non commented line (is not grey as it was)

Thanks for your support.