HTTPS provides end-to-end encryption of your traffic between your browser and the server holding the private key corresponding to the TLS certificate.
When you go to a HTTPS website on cloudflare's CDN, cloudflare holds the private key for the certificate presented to your browser (and it's pretty obvious that it's cloudflare; e.g., the certificate's common name is usually something like sni241623.cloudflaressl.com
with a dozen or so Subject Alternative Names for the sites it serves). Or you could run a whois
on the IP address corresponding to the domain name you are visiting; you'll find it's owned by cloudflare.
Note for a site to use cloudflare, the owner has to point their DNS records to cloudflare's servers, at which point they effectively handed cloudflare full control of their website (as long as the DNS records point to cloudflare's servers). They can prove control of a domain to certificate authorities who will issue certificates for your domain to cloudflare.
Now cloudflare has control to eavesdrop and log any user interactions with your website or silently tamper content if they please.
However, this is not a Man-in-the-Middle attack, because the website owner gave cloudflare permission to do all of this. So it's not an attack, it's a secure connection to cloudflare (who the website owner gave permission to serve content at their domain name).
It's no different than a company outsourcing their website to a third party that designs and hosts the website. There's a third party that could do nefarious things, but was given full permission by the appropriate owner.
Or it's like how many websites run on shared hosts or purchase virtual private servers, where administrators at the hosting company can get at all the data on your server if they wanted. If some admin at your VPS host with root access to the servers really wanted the private keys to your running webserver, they can get them. (Note things like full disk encryption inside your VM can be sidestepped, because they control the host's hardware and can read your VM's memory.) But again, people that use shared hosts/VPS chose to trust the companies to be reputable.
In the end, that's all you have. You have to trust that the organization running the website at the other end is trustworthy with whatever data you give them by browsing there. When visiting websites on the cloudflare CDN part of the trust is in cloudflare.
(This is in contrast to real MitM attacks, where some attacking middleman who does not have authorized access eavesdrops and/or tampers with the network traffic).