Why does he write that $\operatorname{Re}(Ae^{i(\omega t -kx + \epsilon)}) = Ae^{i(\omega t -kx + \epsilon)} $?
He doesn't. As Hecht writes:
Henceforth, wherever it's convenient, we shall write the wave-
function as
$$\psi(x, t) = A e^{i(\omega t-kx+\epsilon)} = Ae^{i\varphi} \tag{2.37}$$
and utilize this complex form in the required computations. This is done to take advantage of the ease with which complex exponentials can be manipulated. Only after arriving at a final result, and then only if we want to represent the actual wave, must we take the real part. It has, accordingly, become quite common to write $\psi(x, t)$, as in Eq. (2.37), where it is understood that the actual wave is the real part.
At no point is there any pretense that $\operatorname{Re}(Ae^{i(\omega t -kx + \epsilon)})$ equals $Ae^{i(\omega t -kx + \epsilon)}$, because it doesn't.
Instead, one works with the complex representation $Ae^{i(\omega t -kx + \epsilon)}$, of which only the real part is the physical field, in the understanding that for linear wave propagation phemonema (i.e. everything that you might want to do, up to (but excluding) calculations of energies and intensities) the difference doesn't matter, and it is more convenient to work with the complex representation and then take the real part at the end as necessary.
... all of which has already been explained, in detail, in What is the physical significance of the imaginary part when plane waves are represented as $e^{i(kx-\omega t)}$?