I too am very interested in the topic of tagged text. Having worked years with Quark and InDesign, I developed scripts to generate the tags when exporting from a database so it could be imported into chapters of reference-type books fully formatted. REALLY speeded up the time to create the book.
At the start, I learned what the formatting was like by exporting fully formatted text from a document, then studied how the header text and tags were formatted. i don't see any way to export text out of an Affinity document except copy and paste which does no good. I'm new to Affinity and just got the version 2 bundle and this is one of VERY few omissions compared to the others.
Looking forward to this feature being added.
Dave