Maybe worth pointing out that indecent exposure is a crime, but so is involving children in sexual activity:
www.emmottsnell.co.uk/blog/flashing-indecent-exposure-legal-remedies
Sarah Everard's tragic death highlighted that indecent exposure and paraphilias are often precursors to offenders escalating.
Worth looking at the Sexual Offences Act and what it says wrt children, specifically.
www.legislation.gov.uk/ukpga/2003/42/contents
(1)A person aged 18 or over (A) commits an offence if—
(a)he intentionally engages in an activity,
(b)the activity is sexual,
(c)for the purpose of obtaining sexual gratification, he engages in it—
(i)when another person (B) is present or is in a place from which A can be observed, and
(ii)knowing or believing that B is aware, or intending that B should be aware, that he is engaging in it, and
(d)either—
(i)B is under 16 and A does not reasonably believe that B is 16 or over, or
(ii)B is under 13.
(2)A person guilty of an offence under this section is liable—
(a)on summary conviction, to imprisonment for a term not exceeding 6 months or a fine not exceeding the statutory maximum or both;
(b)on conviction on indictment, to imprisonment for a term not exceeding 10 years.