If I got divorced October 2023, do I have to report alimony payments I receive?

My ex husband pays the mortgage in lieu of alimony for now. I was told that I didn’t have to report the alimony on my taxes but my ex is asking for my social security number because he is reporting the alimony he is paying.