2002 Ranger doesn't have PVH front hubs, just 1998-2000 Rangers did, your front hubs are bolted to the front axles, always locked
Warm up engine
Let it idle
Unplug the 2 wire connector on the IAC Valve
(looks like this, upper front of engine:
https://www.ford-trucks.com/forums/attachment.php?attachmentid=594&stc=1&d=1062021739 )
Idle should drop down, engine may even stall, either is good
If it doesn't drop then you have a vacuum leak
OR
From your other comment, "Only other issue I’ve found is a kinda sticky gas pedal..."
You may have a throttle plate issue, its sticking and not closing all the way
I would check this first
Pull off the "air tube" from intake manifold so you can see the throttle plate inside intake
Manually move the throttle linkage to see if its sticking, try to pull it closed more
If TPS(throttle sensor) was ever replace someone may have goofed up and its whats causing the "sticky gas pedal"
Common vacuum leak on the 4.0l SOHC engine is the PCV Hose, at the elbows
Thread here on that issue:
https://www.ranger-forums.com/4-0l-ohv-sohc-v6-tech-33/pcv-elbow-fix-very-common-cel-93776/
This is usually associated with Lean Codes, because of the vacuum leak
My bet is on the "sticky gas pedal" causing the high RPMs