flagellant

ˈfladʒ(ə)l(ə)nt
fləˈdʒɛl(ə)nt

noun

a person who subjects themselves or others to flogging, either as a religious discipline or for sexual gratification.