One hamfisted solution would be to require both men and women to take the same time off if they were to have children. That way one gender isn't seen as having a greater possibility of taking longer parental leaves.
Mandate that both parents must take at least some baseline time off from work. Say mandate at least three months. There will be people who take longer, and some who opt out of work altogether but this would eliminate the thought pregnancies get in the way of productivity for one gender and not the other.
Have to make sure the family has still enough income, as women often choose lower paying jobs. Also take care of the desire for part-time work, sick children and issues like that.
Lastly, this would actually take away privileges from women (privilege to choose to be a stay-at-home mom), but if that's what feminists want, why not.
This is pretty much what happens in Scandinavian countries. E.g. in Sweden, parents each get three months of paternal leave. An additional part of the paternal leave can be divided between parents as they see fit. https://sweden.se/society/gender-equality-in-sweden/
Mandate that both parents must take at least some baseline time off from work. Say mandate at least three months. There will be people who take longer, and some who opt out of work altogether but this would eliminate the thought pregnancies get in the way of productivity for one gender and not the other.