Irregular termination itself is bad, regardless of whether the employee is pregnant. However, without further information about the reasons cited for such termination assuming it has indeed happened, whether the employee concerned had any complaint against them, commenting about the propriety of the action would amount to pure speculation.
Even after repeated student body interventions, the might of the VC reigns
https://timesofindia.indiatimes.com/jobs/tcs-revokes-termination-of-woman-employee/articleshow/45953919.cms