flagellant

noun

1.
a person who is whipped or whips themself for sexual gratification
Derived from:
flagellate
2.
a person who whips themself as a religious penance
Derived from:
flagellate