According to the Law on the Protection of Minors
Twenty-eighth schools should protect the rights of underage students to receive education, and may not expel underage students in violation of state regulations or in disguised form.
Schools should register underage students who have not completed compulsory education and persuade them to return to school; If persuasion fails, it shall promptly report to the administrative department of education in writing.
You can sue if you are fired.
According to the Law on the Protection of Minors
Article 105 People's procuratorates exercise procuratorial power according to law and supervise the litigation activities of minors.
Article 106 If the legitimate rights and interests of minors are infringed and the relevant organizations and individuals fail to file a lawsuit on their behalf, the people's procuratorate may urge and support them to file a lawsuit;
Involving public interests, the people's procuratorate has the right to file a public interest lawsuit.
Central People's Government-Law on the Protection of Minors