Under Hebrew law it is up to the discretion of the husband. The whole section according to the New International Version for Exodus 21 is:
22 “If people are fighting and hit a pregnant woman and she gives birth prematurely[e] but there is no serious injury, the offender must be fined whatever the woman’s husband demands and the court allows. 23 But if there is serious injury, you are to take life for life, 24 eye for eye, tooth for tooth, hand for hand, foot for foot, 25 burn for burn, wound for wound, bruise for bruise.As you can see the husband demands a fine. The other law in Numbers 5 is specifically about abortion and is ordered by the husband and administered by Levitical priests. It doesn't make sense to prosecute a husband under Hebrew law for giving an abortion, because it is his right. The law in Exodus 21 only applies to mischief from people outside the marriage.
This is an issue we have been experiencing recently since the overturning of Roe Vs. Wade. Married couples are needing abortions for health issues and having to travel out of state. Does it make sense that the mother will have to die and give a still birth when she could have an abortion and have 10 more children? I'm not sure what your moral alignments are, but they are not always making sense modernly. These married couples are not having abortions for fun, but because they want to have more children in the future. There is no condemnation under Hebrew law for the husband demanding an abortion, it is his right.
It doesn't matter what the Hebrews did or what they do with Roe/Wade, God said life for life.
As a Christian first and a liberal second, does that give you any pause toward the Democrats?