I'd bet none of the communities you've seen it is a workplace.
Instead you get the actual actions. Because people who spend that much time interacting tend to not stay in a Platonic Ideal "strictly professional" relationship, but become acquaintances or even friends. In which case it's that set of rules that apply, rather than the ivory tower set of rules based on said Platonic Ideal.
But in a way that just emphasizes why "[hug]" would be awkward and borderline inappropriate in a work setting. How often do coworkers physically hug at work?
I'm not saying it would always be wrong to use "[hug]" (or even physically hug somebody at work), but I'd expect it to be far less common than in some other settings.
I also tend to close my (less serious) working emails with stuff like "Love, kisses, [Name]" — and no one ever got offended by that, albeit the majority of my team would probably dislike some random bearded guy actually kissing them.
Awkwardness is in the eye of the beholder. Working with adults (with no serious mental health issues) alleviates the need for a prohibitive, mildly disgusting CoC, like the one discussed in this thread.
Wait, really? I've never posted it myself, but textual descriptions like "[hug]" as a way of expressing gratitude or solidarity are common and mundane in plenty of communities.
Now, sure, cluttering technical discussions with stuff like this isn't preferable. To call it "clearcut sexual harassment" is ludicrous and completely devalues the term in question.