@Packbat@indiepocalypse.social custom emoji are really just :single_words_between_colons: so the only maybe tricky part is making sure the instance actually has an emojo fur any instance of a :single_word_between_colons: (you don't want to allow such text to pass through otherwise, you know?)
@Packbat@indiepocalypse.social oh wait no i furgot, custom emoji are always tagged in a post by the backend (statuses are serialized to the client alongside the info necessary to replace all custom emojim with their assoicated images), so there is definitely a step where you have all the emojim that the status have available to check, so making sure you do this right should be easy