There are scientific articles proving Foucault defense of decriminalization od pedophilia and rape.
According to Zizek (2018) in 1968, “the French “progressive” press published a series of petitions demanding the decriminalization of pedophilia, claiming that this would abolish the artificial and oppressive culturally constructed frontier that separates children from adults, and would extend to children the right to freely dispose with one’s body” (p.127). Among the people who signed these petitions, there were Michel Foucault, Simone de Beauvoir, Jean-Paul Sartre or Jacques Derrida, among others.
In addition, in 1977 “he contemplated the idea that rapists should be punished only for a crime of violence, and not for a sex crime” (Taylor, 2009, p.1) and he added that sexuality can not be the object of punishment under any circumstances (Cahill, 2000)
Taylor, C. (2009). Foucault, Feminism, and Sex Crimes. Hypatia, 24(4), 1-25. https://onlinelibrary.wiley.com/doi/10.1111/j.1527-2001.2009.01055.x (SCOPUS Q1 in 2009; Q1 2019)
Žižek, S. (2018). Provocations: The 1968 revolution and our own. World Policy Journal, 35(2), 124-129. (Scopus Q4 in 2018; Q3 in 2019)
Cahill, A. (2000). Foucault, Rape, and the Construction of the Feminine Body. Hypatia, 15(1), 43-63. http://www.jstor.org/stable/3810511 (SCOPUS Q2 in 2000; Q1 in 2019) ALMETRICS https://onlinelibrary.wiley.com/doi/epdf/10.1111/j.1527-2001.2000.tb01079.x
Bell, V. (1991). Beyond the thorny question – feminism, foucault and the desexualisation of rape. International Journal of the Sociology of Law, 19(1), 83-100