I assume that -exp (-x^2 / 2) d /dx exp (-x^2 / 2) is to be interpreted as an operator that applies to a function f(x), giving -exp(-x^2/2)*(d/dx)[exp(-x^2/2)*f(x)] = x*exp(-x^2)*f(x) - exp(-x^2)*df(x)/dx = exp(-x^2)*[x - d/dx] f(x). The exp(-x^2) arises from exp(-x^2/2)*exp(-x^2/2). Where is my error?
On the other hand (as I suggested before), -exp(+x^2/2) d/dx exp(-x^2/2) applied to f(x) does, indeed, give x*f(x) - df(x)/dx, because we get cancellation: exp(x^2/2)*exp(-x^2/2) = 1.
RGV