The Figvar Plugin has the ability to create a companion variable that holds the formatting instructions for characters in a string variable.
Would be great to make this a standard part of the way Figma works, so as to not need to handle this with a Plugin like Figvar.
Please add a formatting attribute for text nodes to enable mid-sentence formatting to hold when characters are updated by variables