I don’t see how that’s enforceable.
For example, how do you stop a company from buying publicly traded shares, which is basically buying a company.
And if you do stop companies from buying publicly traded shares, the entire stock market collapses. Individual buyers buying shares from their personal accounts form a vanishingly small percentage of stock trades. I suspect even a lot of the individual purchases are done through corporate entities for tax, liability, and bankruptcy protection reasons.