I agree with that.
The laws of special relativity only applies to inertial frame of reference.
The frame of the twin on the spaceship has not remained inertial, as the spaceship has accelerated, decelerated, turned around and then repeated it accelerations.
So, there is no paradox because...