Yes, Cloudflare stores the SSL the private keys. CDNs really need to read and modify the requests and responses for most of their functionality, like caching, load balancing, DOS mitigation, ...
You can always use a separate, not CDN protected domain for your API if this is a threat vector you care about.
Genuine question, I never used one of these services.