This is what happens in Norway to some extent. You are given 12 months parental leave to share between the couple. The mother has to take 6 months. The father 3. The remaining 3 are decided by the couple.
That's oversimplified as there more options and scenarios but the fairly common situation. Like you say it takes away women being seen as such a liability from becoming mothers from what I saw in my little bubble while living there for a few years. Also as fathers have all this time off it encourages the mother back to the workforce. And for me it really helped in my day to day baby duties involvement.
I've brought this up many times to people pushing for better women's rights in the workforce as something they should fight for if they do want a more equal workplace vs more an egocentric position of leave/benefits for themself.