Not exactly, but we already have the html-block extension handling the html_raw markdown-it tokens, which is a generic way to handle a passthrough content.
You can check all the types of extensions allowed via registerRichEditorExtension, and there are many extensions from plugins as well as the ones that are registered by default that can be used as inspiration.
Please let us know if you have any question.