I was a housewife for a few years (and since 3 weeks 😁) and I never felt "financially trapped" because my husband has made a conscious effort to ensure that I own property in my own name. I think this is something other men could also do, to reduce womens' inclination to stay in the workforce and make marriage and motherhood more attractive to women.
Oh, I didn't feel financially dependent for a long time either. We owned everything together. What happened next is very personal. But believe me, I couldn't imagine it myself. But I certainly made clear mistakes
Everyone makes mistakes, if you're married long enough.
I don't think "owning together" is enough. I think the homemaker needs to own things outright. Solely in their own name, so that they can take it and walk out the door. Like have their own retirement account, gold vault, Bitcoin wallet, etc. It's a psychological thing, mostly, but psyche is important.