3 year old aggressive with other classmates

My daughter is 3 and is about to get kicked out of her preschool class.

She frequently hits the other kids. The teachers have spoken to her, and her father and and I have punished her but she doesn’t stop. It happens almost every day. If she gets kicked out of the preschool, I don’t know what we will do. We have no other childcare options and I am not even sure if she can start up in another school halfway thru the year. Most schools and daycares have waiting lists

How can I stop this behavior?? And has anyone ever had their child kicked out? I am so upset and embarrassed

Editing to answer some questions-

She doesn’t have any kind of diagnosis. She will tell the other kids they are being bad and not listening to her and then she hits them. She also does this if the kids don’t listen to the teacher. For example, when the teacher rings a bell, the kids are supposed to sit down. If they don’t sit down she will go to hit them. She does this too with her cousins, she will tell them to do something and if they don’t she hits them. It is a problem at home but I am more concerned with school since she is about to get kicked out.