Hi Andres Rotman,
I can reproduce your issue, I create a .xlsm file with a macro via Office 2019 for Mac, when opening this file on Microsoft 365, the module's name changed as the following screenshot shown.
I haven't found a solution yet, it's recommended to raise this issue in Excel app on Mac, click the Feedback icon at right upper right corner, then you may click I don't like something or I have a suggestion to submit this feedback. Thanks for your understanding.