Yes, you may still qualify as head of household even if your ex-spouse, the noncustodial parent, is entitled to claim your child as a dependent.
To qualify for head of household status, you must meet the following requirements:
According to the retrieved information, a custodial parent may still be eligible to claim head of household filing status based on a child even if they have released the claim to exemption for the child to the noncustodial parent. The noncustodial parent can claim the child as a dependent and for the child tax credit or credit for other dependents, but cannot claim the child for the purpose of head of household status, the earned income credit, the credit for child and dependent care expenses, or the exclusion for dependent care benefits.
Therefore, as long as you meet the other requirements for head of household status, you can still file as head of household even though your ex-spouse is claiming your child as a dependent.
Sources:
§ 152. Dependent defined
Publication 501 (2023)