The vernacular for the part that failed is called the Mickey Mouse flange. You can buy aftermarket replacements that are aluminum. If the hose is fine, you can replace just the flange or you can buy a replacement hose+flange. It's a pretty common failure on the N5x.
https://www.fcpeuro.com/products/bmw...e-rein-chc0609
The site also has the flange/hose combo.