(e) Has previously been convicted of a violation of s. 787.025(2)(c); s. 794.011(2), (3), (4), (5), or (8); s. 800.04(4) or (5); s. 825.1025(2) or (3); s. 827.071(2), (3), or (4); s. 847.0145; of any offense under a former statutory designation which is similar in elements to an offense described in this paragraph; or of any offense that is a felony in another jurisdiction, or would be a felony if that offense were committed in this state, and which is similar in elements to an offense described in this paragraph, is a dangerous sexual felony offender, who must be sentenced to a mandatory minimum term of 25 years imprisonment up to, and including, life imprisonment. If the offense described in this subsection was committed on or after October 1, 2014, a person who qualifies as a dangerous sexual felony offender pursuant to this subsection must be sentenced to a mandatory minimum term of 50 years imprisonment up to, and including, life imprisonment.