A heuristic comment. The ansatz above works because the delay operator $f(\cdot) \mapsto f(\cdot+a)$ can be formally written as $e^{aD}$, where $D = \frac{d}{dx}$. This is simply the operator-side manifestation of the Taylor's theorem.
So your equation can be formally written as $(D - e^{\frac{\pi}{2}D}) f = 0$. Considering that the eigenfunctions of $D$ are exponential functions, this operator diagonalizes over the space of exponentials:
$$(\lambda - e^{\frac{\pi}{2}\lambda}) e^{\lambda x} = 0.$$
So it suffices to hunt for values $\lambda$ for which $\lambda - e^{\frac{\pi}{2}\lambda} = 0$ holds. Of course, all this discussion is not so rigorous and the possibility of other form of solutions is still open.
(Though I humbly suspect that the span of the solutions of the form above is in some sense 'dense in $C^{\infty}$' so that any solution is a possibly infinite linear combination of the solutions of the form above.)