Explain the problem.
pandoc -f latex -t typst --verbose
$A\hspace{0.4em}B$
^D
yields:
[WARNING] Could not convert TeX math A\hspace{0.4em}B, rendering as TeX:
A\hspace{0.4em}B
^
unexpected "."
expecting digit, "em", "pt", "in" or "cm"
\$A\\hspace{0.4em}B\$
Note that using integers does work: using 1em yields quad in the Typst output.
Pandoc version?
3.6.3 / Linux