Looks like the engine is around 30K list plus whatever additional parts need to be replaced. Then add labor.
https://www.getbmwparts.com/oem-part...Y4LWdhcw%3D%3D
__________________
2023 M5 Comp Skyscraper Grey,Executive Pack, Drivers Assistance, B&W, 789's.