The PAF should be shifting their primary R&D resources towards 5th gens rather than continue messing around with the JF17.
I don't know too much about PAF's fifth generation program, but I have serious doubts as to whether Pakistan can get this off the ground in the next 10 years. Where will the PAF even get a suitable engine for a 5th Gen project?
China's WS-15 has not entered service yet, we don't even know at what development stage it is in, since there are no photos of any test aircrafts with the WS-15, the WS-15 could take another 10-15 years to even go into production, its anybody's guess right now. Even if it goes into service, China probably doesn't have the ability to produce a lot of WS-15 per year, and the J-20 needs them as well.
Russia doesn't really have a fifth gen engine in service either, the ALS-41 is in the same league as China's WS-10G, which is basically an upgraded AL-31. Even if Russia finishes developing the
izdeliye 30 for the SU-57, there is no way they would sell it to Pakistan, because of Russia's dependence on India.
The USA is the only country with an actual 5th gen suitable engine, but given the political climate, I doubt the US will offer it to Pakistan.
And that's just the engine, nvm all the other complex subsystems such as avionics, radar, missiles, etc.