Here is the real answer, not conjecture.
I ran those wheels as my winter set on my 2017 540i xDrive with MSport brakes, and moved them over to my 2020 540i xDrive with MSport brakes, have put probably 80,000 miles on over 5 winters (and counting) and there are zero fitment problems. A side benefit is I really love the all silver rims; I get to change up by 540's look twice a year.
Note that I have the MSport brakes. The 18's may or may not fit over the MPerformance brakes. Your post does not specify which you have (just "M brakes" which could be either) nor do you specify the chassis of your 540. Since you are posting on the G30 forum, I assume you have a G30, but if you have a E39 or other earlier 540, the bolt pattern is completely different.