Do it in a way that earns them more money. Sounds difficult but that is what adsense did. If legit ux practices earn more, companies will use them.
Potential scenario: someone makes a browser plugin that blocks dark patterns as if they were ads, so companies who use them don't see any traction with them.
Or 50 years out when everyone is computer literate, users are aware of dark patterns and punish companies who use them by not buying their products.