Can i use my sons daycare tax statement even though i cant claim him as a dependant as he lived w his mom for 7mos?

my son lived with me all of 2022 and 5months into 2023. during this time i paid for daycare and have received tax statement from the daycare. i cant claim him as a dependant for 2023 as he lived with his mother for majority of the year and we have a verbal agreement. am i able to get credit for the daycare i paid into for the 5mos he was with me or not?