It can work with Learndash. In WooCommerce set the product type for your course as a Simple Product instead of a Course. Then in the box below where it says Learndash courses select the course name.
My site isn’t live but I’ve tested it with VPN’s and it’s working fine. I set the Learndash course page setting to redirect to Cartflows if the viewer is not enrolled in the course and then sell the course on a Cartflows landing page so I’m not limited to the dynamic content in Learndash and can make it look exactly as I like which is very different from the Learndash course page I want an enrolled student to see. I don’t know it going via cartflows has anything to do with making it work or not.