Hello, I would like to ask, is it legal to prepare patented chemicals privately? If the patent has not been approved yet, is it legal?

Whether it is legal for you to prepare your own medicines has nothing to do with whether your patent has been approved or not. The key point is the purpose of your prepared medicines. If it is for research (limited to non-human experimental research), there is no problem for self-use. However, if you prepare drugs for external sales and use, you will violate the law and be treated as manufacturing and using counterfeit drugs. Those who cause serious consequences will be held criminally responsible.