Want to add conversational tags

I’m hoping to add visible conversation tags to dialogue similar to RPGs like Baldurs Gate 3. For example

*[Occultist] “I know what you are”

I was wondering if anyone knew the best way to make this optional? As I imagine some players will want the tags hidden.

You can create a tag variable, and then use multireplace with the tag text as one option, and the other option empty, I think.
That would be a little simpler than doing *if statements every time you need a tag.