if you want a function, I just grepped the julia codebase and found this in REPL:
julia> REPL.repl_latex(stdout, "̂")
"̂" can be typed by \hat<tab>
interesting, I didn’t know we had emoji latex strings…
if we’re supporting emoji then adding a shortcut for the zero width joiner seems like a good move, \zwj doesn’t seem to be taken yet
opened a pr to add \zwj: adds zero-width-joiner input method by rokke-git · Pull Request #61391 · JuliaLang/julia · GitHub