Tax Year Prior to 2020: Reporting 1099-B stock sale reported to my ex-spouse

I'm trying to figure out how to report a 1099-B stock sale that was reported to my ex-husband. We divorced in April, and as we were dividing up our assets, I sold my half of the shares in our joint investment account and moved the money to my new individual investment account. He then converted the account that had been our joint investment account into his individual investment account. I need to report the sale on my taxes, but the bank reported it only to him because only his name was on the account at the end of the year. How should I/we report this on our taxes?