I'm happy to tell you this issue is resolved in Moodle upstream as of now. https://moodle.atlassian.net/browse/MDL-84695 is in the code base as of yesterday.
Either grab a weekly Moodle 5.0 release or, alternatively, wait for Moodle 5.0.2 due to be published August 11th, 2025.
Best,
Luca
Either grab a weekly Moodle 5.0 release or, alternatively, wait for Moodle 5.0.2 due to be published August 11th, 2025.
Best,
Luca