It's using the custom emoji on the user's instance, then just putting the :code: for the emoji in their display name. Like on my Mastodon account my display name is entered as hybrid havoc :1m: :rm:
:1m: and :rm: are custom emojis I have setup on the instance.