Can an insurance company give a list of your prescriptions to your ex-husband?

I just went to family court and my soon to be ex-husband presented a print out of medications I have been on over the past 7 years. Our insurance company provided him with this list.

Is this legal? I thought there were strict confidentiality laws regarding this!

That is definitely illegal in the UK. Even if the policy were a joint policy, your insurance company does not have the right to disclose personal information without your express permission.

Have you spoken to the insurance company?