The NHS doesn't say its safe to vape, it says its safer than smoking for the user and much safer than smoking for the people around the user. It does make clear as well that this opinion is dependent upon the user using regulated stuff and not any old thing.
https://www.nhs.uk/smokefree/help-and-advice/e-cigarettes