You may also have a claim against your former landlord (although, since they have lost their property to foreclosure, it may be impossible to collect upon a judgment against your former landlord).

If the new owner does file an eviction lawsuit, there may be a way to have the case sealed/suppressed so that a new landlord will not see that there was an eviction lawsuit filed against you.