I've only tried it this way so far, simply by entering it into the text prompt, not from an external txt file (ForgeUI). By the way, if you ask, ChatGPT will gladly explain how it works. :D
Positive prompt: closeup portrait of a sci-fi warrior robot, rusty metal, mech, cinematic, {red|green}...