If your model is struggling with parentheses, that means it's not even the level of GPT-3 for a mainstream language.
It's not completely impossible with in-context learning I guess, but it will still be much weaker than .. eg all of GitHub and more on Python