Do not support this at all!!
This will be actually a disadvantage to all women out there, company will prefer less those who are newly married or planning to have a kid.
I don't think anyone wants 2 years leave but provide support like WFH, flexible schedule, child...