There have been multiple court decisions in MA related to foreclosures since the great recession that make underwriters hesitant to insure title to recently foreclosed property, particularly ones that may still be occupied by the Borrower. So much so that a common exception found in commitments and policies reads:
"Any rights, claims, or interest of (the mortgagor) in the land or any claim that the foreclosure by (lender) is invalid."
However, even if you receive a title policy that does not have the exception there may be additional problems. For example, if the Borrower brings suit claiming the foreclosure was defective and the insurer decides it has liability it can do one of two things. It can provide a defense for the insured, which means it with provide a attorney to defend you. That can be a problem itself since your not a party to the original mortgage or the foreclosure. The Borrower may claim you don't have standing to defend. Assuming your retained attorney is able to convince the court you are the real party in interest since you own the property now you have to prove the foreclosure wasn't defective. That can be tough because as I wrote above, you weren't party to the mortgage or the foreclosure so you don't know anything about it. You have to hope the lender who foreclosed, who may or may not be your Grantor, appears and can prove there was nothing wrong with the foreclosure. My point being, this probably would not be resolved quickly. Realistically it could take years, during which you probably won't be able to sell or refinance the property and the Borrower may be in possession of the property not you. You of course will probably need to pay the property taxes, keep insurance on it since you own it of record and hope the Borrower keeps it in somewhat habitable condition.
Then, assuming you win, you get clear title to the property. Hopefully you don't then have to bring an eviction action but I have seen that happen. And keep in mind, the insurer has perfected title as insured so it's fully performed its obligations, it won't owe you anything else. No reimbursement for the taxes, insurance, lost rent or attorney's fees if you decided to hire your own attorney to look over things because it was taking so long.
If you unfortunately lose, or if the insurer decides not to spend the money defending it will pay you the lesser of the amount of the policy amount or the value of the property. Additionally, it probably still won't owe you any other out of pocket expenses.
I've written in other posts that if you look at the title agent being used by the seller, the title agent, not the title underwriter, you might find it owned by the mortgage servicer who is probably the attorney in fact for the lender. Some people might think that's a conflict of interest.
All in all you might want to talk with a good real estate attorney who practices in the county where the property is and make sure you understand the risks. I'm not an attorney and this isn't legal advice, it's just my opinion based on about thirty years of handling title insurance claims. Good luck.