Anyone ever purchased home after forclosure and bankruptcy

??? If so, how was the process? Did you use government backed program? Ie. Fha, USDA.

Purchased home and lost it due to divorce . Filed chapter 7, too but separately. This was all 3 and a half years ago.