I think you need to prepend an @ for users and an ! for communities.
I played around with it, and eventually this option just popped up in a little context menu: https://lemmy.dbzer0.com/u/ryven surrounded by regular link brackets.
Some reason i don't think that's right though.