I’ve been thinking the same recently. Regulation doesn’t keep up.
An industry standard code of conduct or framework, with certification and a seal to show your software adheres to the certification may be the best approach. perhaps source code or data handling processes could be audited in the scheme.