Mustafa Khattab:Translation:
A male fornicator would only marry a female fornicator or idolatress. And a female fornicator would only be married to a fornicator or idolater. This is ˹all˺ forbidden to the believers.2

A. Yusuf Ali:Translation:
Let no man guilty of adultery or fornication marry and
but a woman similarly guilty, or an Unbeliever: nor let
any but such a man or an Unbeliever marry such a
woman: to the Believers such a thing is
forbidden. 2957

Muhammad Asad:Translation:
[Both are equally guilty:] the adulterer couples with none other than an adulteress - that is, a woman who accords [to her own lust] a place side by side with God; 4 and with the adulteress couples none other than an adulterer - that is, a man who accords [to his own lust] a place side by side with God: and this is forbidden unto the believers. 5
2 It is reported in a ḥadîth collected by At-Tirmiⱬi that Marthad ibn Abi Marthad, a companion of the Prophet (ﷺ), asked if he could marry ’Anâq, a pagan prostitute he befriended in Mecca before he accepted Islam. So this verse was revealed. However, if someone committed a sin then later repented genuinely, they will be accepted by Allah and the rest of the believers.