I have hacked it to install on MacOS in the past, by digging into the Application and running the program directly, but this may not have worked last time I tried (I cannot remember).
However, not answering your question, but achieving the same result in a different way perhaps:
What actually seems to work is to install the STM32CubeIDE instead.
As far as I can see, it includes the functionality that is in STM32CubeMX and STM32CubeProgrammer.