The approach to coding is different from human language/communication, where there is more flexibility in how you approach it.  It's quite different.   About the closest I've come to the experience of coding and the rigour/logic behind it while studying a language is Latin.   I've studied some Asian languages and some European languages.

Learning formal grammar is a way of getting closer to coding, but it's not quite it.   And a lot of kids today in Canada have little exposure to learning English grammar formally, so there is a distinct skillset.