Thanks everyone for the helpful advice. Im going to talk to them in a few days, just mentally preparing myself for the worst.
Ive done some calculating myself and realised that my maternity leave (if I start exactly 4 weeks before confinement) ends on the same week my contract does (days before the new school semester begins).
How would knowing this affect my employers decision for my case? Im just exploring every aspect of my situation. Given the choice, Id really prefer for them to ask me to resign.