As long as you’re able to prove that they were aware of the issue you’ve got a shot.
Questions for the lawyer ?
I know someone who moved into a new place and had the basement flood 5’ deep!
They called the local fire department to pump it out,while they were there one of the volunteers mentioned he was there before. Homeowner sued the builder, real estate agent and previous owners. He made out ok but still stuck with a basement he couldn’t finish off like he wanted to.
Caveat Emptor !