Thanks Jeremy, that worked.
However, I have to say it was actually a less "silly" one than I anticipated in my original post. Not sure how users not already familiar with Python are to guess such a workaround. I had as a guidance the documentation for using variables in text components, which says:
To indicate to PsychoPy that the value represents a variable or python
code, rather than literal text, it should be preceded by a $. For example, inserting intensity into the text field of the Text Component will cause that word literally to be presented, whereas $intensity will cause python to search for the variable called intensity in the script.
I'd have added a paragraph about the current issue but apparently documentation is not set up as wiki. If you think it might be helpful to future users who bump into the same problem it might be good to make a note there about cases where text fields contain instructions in addition to variable names.
Once again, thanks for your kind and prompt help.