Not a Chinese jet bruh, but co-developed.
Semantics. by that rationale technically F-35 isn't an American jet, since its "co-developed".
Learning from past mistakes is a good thing.
It wasn't a mistake, acquiring the JF-17 was the best decision Pakistan ever made. A 4th gen airframe light fighter replacement for all the older J-7s, at an unbeatable price point. A resounding success with several hundred units built and continuing to be built in addition to a growing export market, compared to the mess that is the Tejas program next door.
China was never going to acquire the JF-17, it didn't need it, maybe initially they might have wanted it, but China's economy grew at an astounding pace of 10% through several decades and it got rich, it did not have a budgetary restraint that would have required it to acquire cheap replacement fighters. So its just waiting out older fighters, and replacing them with far superior fighters. Like its literally replacing J-7 squadrons with J-20s at $100M a pop, b/c it can afford it.