The Pak-FA doesn't seem too bad. Especially when you consider that it doesnt seem to be intended as a direct 1:1 counter to the Raptor.
I mean, let's be honest, the F22 is vastly over engineered for what we're saying are its main advantages. If we want to use it as a stealth AWACS, then we should have built a dedicated stealth AWACS. But now, it's going to be treated exactly like a carrier in a large scale conflict, and kept out of danger for fear of losing it, which defeats its primary role as a fighter.
The Russians, on the other hand, seem to want to build a new generation fighter that happens to have stealth. However, I suspect that the cost grew to be prohibitive to such an employment, and that they were banking on its stealth as a marketing feature to help push unit cost back down with foreign sales.
Now if I were to guess, Sukhoi is simply being told to keep the tooling in place so that if the situation changes,they can start cranking them out.
Does this make their fighter bad? No, it just means that they didn't foresee cost overruns, and poor foreign sales, in much the same way we screwed up on the F35. We assumed everyone would jump at the chance to get their hands on it, but then it turned out to be more expensive and less capable than advertised.