Let us wait for the crash investigation conclusions.
Meanwhile, please realize that you should take into account the number of flight hours and type of sorties made before a qualification on the safety of any type can be made.
Normally, when a technical failure is suspected or found, the fleet will be temporarily grounded to inspect and - if necessary - repair them. Or ammend operational / safety procedures.
The decision on grounding or withdrawing a type altogether, would be done after an assesment of the over-all safety records, cost-per-flight hour, maintenance effort needed to keep the fleet airworthy, availiabilty of spare parts, availability of alternative assets.
And although the JF-17 is on the horizon to maybe take on the role of lead-in fighter training after a while, there will still be the other role of type conversion for the F-7PG fleet, maintaining flight hours for F-7 instructors and CCS operations.
So even the F-7P will still be here for (at least?) another five years and the F-7PG for around a decade I think.