That's quite debatable, pass a cold beverage and let's get to it. *cracks knuckles*
On the one hand, Su-25s do a very different job than Gripens. They're heavy ground-attack, not air policing, CAP, or most multirole work.
On the other hand, Peru has mostly settled their need for a heavy ground-attack plane. And getting Su-25s out of service would save a good chunk of money.
And on the gripping hand, spare parts for Su-25s are just about unobtainium right now, so you'd be best off ordering more Gripens (or seeing if the Yanks will finally part with A-10s) and sending your Su-25s to Ukraine.