Thanks Giulio for the advice with the triple backticks!
Concerning the bela button trick I just did some tests:
bela mini:
Strangely the midi controller gets detected now even with my old patch (without the solution above). Always on normal startup by bowering the bela mini, also around 3min later by pressing the bela button.
bela:
The bela still works as expected with the old patch (without solution above). The controller does not get detected on startup, neither with pressing the reset button.
As soon as I implement the solution above back in the patch, the midi controller gets detected.
Since I need to run both bela mini and bela with the same patch, I kept the solution above also in the patch on the bela mini. It seems it does not do any harm to address the midi controller (again) with the delayed bang.
So far that's good for me, thank you for your help, Giulio! I highly appreciate it