Deductions & credits

Yes, the IRS will agree with your ex spouse because they are the custodial parent and you don't have form 8332 signed. You would need to get your divorce decree enforced to make her amend and sign the 8332 to release the child to you. The IRS will not enforce your divorce decree for you so it looks like you might have to go back to court.