The punishment given by the school to students can be considered as an internal administrative act and is not subject to legal adjustment.
It can only be said that the school's behavior is unreasonable, but it does not violate the law.
As for human rights, it seems that the civil rights stipulated in our constitution do not include the problems you mentioned.