Does my ex need our son's SS# to file his taxes because he lived in a halfway house, even though he is not able to claim our child?

We live in Ohio. Ex lives in North Dakota.