Do Node red Subflows only allow static content as environment variables?

I realize I should probably have created a TLDR version of my question:

Is there a way to fill a subflow environment variable with dynamic content such as
“/local/”&data.new_state.attributes.friendly_name&".jpg" or is my suspicion correct that it can only accept static content?