The missing spaces around tags in target text are not flagged by QA check.
Use custom QA checks. A possible basis for a custom check for this case could be this:
and its variants, see here. However, it is not usable if there are multiple tags in a segment.
QA check warns the user if the target text is missing space after or before tag.
It could prevent issues after exporting the file after the translation.