Child Tax Credit - Divorced

I just got divorced this past year. For the 2023 taxes, I got to claim the child tax credit and I am told that next year my ex will be the one doing so despite my child living full time with me. Does it work like that? I simply cannot claim it despite having her 100% of the time? 

Thank you!