The way we write these things in physics is quite loose. In essence, $e^x$ is not defined if $x$ is in meters!
In order to see this, consider the definition of $e^x = 1 + x + x^2/2! +\ldots$.
It is quite clear that you can't add $1$ to $x$ as each term has different dimensions!
The way to write it would be $e^{x/k}$ where $k = 1m$. This cancels the dimension and the expression is well-defined. Normally, you won't encounter $e^x$ type expression if you had started with a meaningful expression. The only way I can imagine arriving at $e^x$ and not at $e^{x/k}$ is in a textbook exercise that says that the trajectory of some contrived particle is $(x,e^x)$. Of course, normally you won't see this artificial constant $k$ but some combination of common constants like $hc/2\pi$ (or something of appropriate dimension).
See this answer to get a better understanding of what units really are.