Define a function $f_\varepsilon: \mathbb{R} \to \mathbb{R}$ as $$\begin{equation} f_\varepsilon(x) = \begin{cases} -1 & \text{if}\; \,x<-\varepsilon \\ \sin \left(\frac{\pi x}{2 \varepsilon}\right) & \text{if}\;\, |x| \le \varepsilon\\ 1 & \text{if}\;\, x>\varepsilon \end{cases} \end{equation} $$ Then $f_\varepsilon(x)$ converges pointwise to $\mbox{sgn}(x)$ as $\varepsilon \to 0$. And it can be easily proven that $ \int_{\mathbb{R}}|f_\varepsilon(x)- \mbox{sgn}(x)|^2\,dx= C\varepsilon $ .
My question is given $u \in L^1(\mathbb{R}) \cap L^2(\mathbb{R})$ and $\varphi \in C^\infty_c(\mathbb{R})$ can we prove $$\int_{\mathbb{R}}|f_\varepsilon(u(x))- \mbox{sgn}(u(x))|^2\varphi(x)\,dx \le C\varepsilon^r$$ for some r>0. I actually tried to mimic the proof but the main issue over here is we cannot apply the change of variable formula. And I'm always ending up in an upper bound like $\varepsilon^r+c$, which is not desired.