Fix KiCAD's variable substitution

Hi @zvoros-gmail-com, welcome to the community. Thanks for sharing this insight with us! If you can provide an example on how to solve this issue locally, feel free to share it. We have a good place to share: Community Tips 🧑‍🔧 - AISLER Creative Community.

If you want to avoid such issues in the meanwhile, take a look at Push for KiCad as described here. As soon as the fix becomes part of the stable version we will support it.