You could technically achieve the subfolder part at Cloudflare using an Enterprise page rule or maybe via workers but I’m pretty skeptical that we could provide any assistance with either.
Cloudflare is hard to support in any form beyond DNS.
And yes, Google themselves have debunked the whole SEO snake oil around cramming everything under a single domain.