Question about Claiming Child while divorced

I am divorced for the past several years.  In the divorce agreement, I agreed to allow my husband to claim our daughter on income taxes which he has done in the past. For 2024, we agreed to now alternate each year claiming her as a deduction so this will be the first time I will get to claim her. We don't have a formal custody agreement, however, she spends 4 nights and my house and 3 nights at his each week. Do one of us have to complete the FORM 8332 to do this? And if so which one of has to attach to their 2024 filing?  I am just trying to figure out the proper way to do this. I would appreciate any help.