That's more like it. I got laid off last year after 5 years. I work in IT and trying to find a job in my field is a miserable process. They'll string you along for weeks and then be like "no thanks". The application process is a nightmare as well.
If you got pregnant with an employer's promise of maternity leave they should be on the hook for all 9 months.
They can either keep you on and get work out of you or they can fire you 2 months in but they're paying you all 9 months + 3 month maternity leave post partum.
All the old people think women shouldn't be working so they are against pro-natal workplace policies and a disturbingly large amount of young people are doom-pilled enough they think pro-natal workplace policies are unfair to them because they don't want to have kids.