Has my son more than half nights past year. judge ordered that I and my sons dad has to alternate years for claiming our 15 year old. So father filed. Where do I stand?

How do I put in the tax form that other parent filed and I can’t claim. I pay most of my sons bills, insurance, etc. does that also mean I can’t claim as head if the father filed.