An-Nur 24:3
"The fornicator does not marry except a [female] fornicator or polytheist, and none marries her except a fornicator[1] or a polytheist, and that [i.e., marriage to such persons] has been made unlawful to the believers."
It is haram for a virgin man to marry a non-virgin (unchaste) woman by default, and vice versa.
Hiding sins in the terminology of the ulama refers to bragging & boasting. These women are not proud of what they did. Rather, they are hiding their shameful deed in order to gain a worldly advantage. THIS kind of hiding can be haram.
An-Nisa' 4:135
"O you who have believed, be persistently standing firm in justice, witnesses for Allāh, even if it be against yourselves or parents and relatives. Whether one is rich or poor, Allāh is more worthy of both.[1] So follow not [personal] inclination, lest you not be just. And if you distort [your testimony] or refuse [to give it], then indeed Allāh is ever, of what you do, Aware."
If the woman believes the man is expecting to marry a virgin but is too shy to ask her, then she is taking advantage of him & it is a kind of deception which can invalidate the marriage contract - just like hiding a health defect, lying about lineage, etc. In such a case, the husband can have the contract nullified (faskh) and retrieve the mahr he gave her/any remaining assets.
The man should very clearly make his preferences known and she should subtly remove herself from further discussions.