Rewiring switched ceiling lights and outlet switched top receptacle to switched ceiling lights and always on outlet
The following assumes that the metal tab was broken on at least the hot side of original outlet, completely isolating the top and bottom. The neutral side may or may not have been isolated.
On the new outlet, connect black wire 2 on the right side and white wire 2 on the left. These are the always-on hot and corresponding neutral. Top or bottom doesn’t matter.
Connect together, with a wirenut, the red wire and black wire 1. These are the switched hot and the hot feed to the lights. Also connect together white wires 1 and 3. These are the corresponding neutrals.
Unless the neutral side tab was not broken originally, do not connect white 2 to the other whites. These are neutrals potentially on separate circuits. Connecting them together could create a situation where a wire could get overloaded.
On the other hand, if the neutral tab was not broken, connect together all three white wires and a short piece of wire (a pigtail) with a wirenut and connect the pigtail to the left side of the outlet.
Where you have wires connected to the side and to the back push-in, they end up interconnected via the metal inside the outlet. Also, if the tab is intact, it will also interconnect the wires on the top and bottom.
One more thing, please do not use the push-ins in the back. Although legally approved, experience shows over time, they can come lose and cause problems. Only use the side connections.