If foreclosure the lender pays those outstanding liens on property ie tax, and etc.
Builder would not be responsible for fact lender now owns the property.
Title company most likely working out these details have closed, you are not responsible. All these issues should have been resolved prior bank taking possession of property
You can't close till you have a clear title