My first two guesses would be throttle position sensor and then idle control valve.
Test first.
Use genuine Ford parts Which would be Motorcraft. Or you could use Denso from Rock Auto. Motorcraft is also available from Rock Auto.
RepairPal Certified shops can diagnose and repair your 1995 Ford F-250. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.