The bankruptcy filing on Monday comes as Spirit Airlines had recorded increasingly steep losses post-pandemic.