If your ex-spouse files for bankruptcy, they must pay child support. Child support is not a discharge of all obligation, so they can’t get rid of it.