You can type 100m$^2$ without a space, and it will render the superscript.
100m$^2$
Also, you can use 100m$_2$ for subscript.
100m$_2$