The federal government says it's open to buying collapsed regional carrier Rex Airlines to protect rural services.