The F-22 can’t replace the F-18 and Harrier.
Neither can the F-35.
We need them all. They all have distinct and necessary missions. The F-22 is supposed to sweep the skies for other aircraft to perform their mission. It is also the only aircraft that can penetrate the air defenses the Russkies are building for Iran, inckluding selling them the S-300.