Pages custom domain inactive. Tried remove and readding record

My pages custom domain shows an inactive but it seems to be working when testing. I tried removing the domain from pages and removing the DNS record in Cloudflare and adding it again. No change to the error message.