This is probably the worst job possible to tackle on a Z3. This is why the Zedshed cut exhaust systems in 2 when they do rear axles.
The bolts are splined and almost weld themselves to the holes. The whole flange deteriorates over time too and could be wasted when you remove it.
They will come out with heat but it needs a lot of it from a proper torch and not a DIY thing.
And the bolts probably won’t be reusable.
I have a way of doing it when the assembly is out of the car as I removed an engine with half of the exhaust system still attached to the manifold. You cut a relief slot with an angle grinder to the outside of the bolt. This allows the stud itself to create some wriggle room as you punch it through. No heat required. Haven’t yet tried it in situ and not sure if there is room for the grinder. When reassembling it has no impact on the gas seal.
Search for my 2.2 engine replacement thread for pictures.
The ultimate answer is to buy replacement flange assemblies. Get these welded on first. Then they are easy to dismantle immediately afterwards. That’s what I’m going to do next time.
One member had this done by a garage Bridgnorth way I think. Very neat and about £250.
You really are almost certainly wasting your time with asking the bolts nicely if they’d like to come out