Flex Objects in modular page

Hello everyone,
currently i am creating a new theme using flex objects for displaying event dates. It works like a charm on normal pages.

Now i want to render a flex collection also in a modular page.
So like on normal pages i created a flex-objects.md file pointing to the right directory and layout.

Content of flex-objects.md:

---
title: 'Bevorstehende Veranstaltungen'
heading: 'Bevorstehende Veranstaltungen'
background_image: bg_start_termine.jpg
link_url: /veranstaltungen
flex:
    layout: small_
    directory: events
---

But running the page i get following error:
** ERROR: modular/flex-objects.html.twig template not found for page: /home/_naechstetermine**

What did i miss? Is ist possible to render Flex Collections and Objects in modular pages?

Thanks for your help

Try copying flex-objects.html.twig from /templates to /templates/modular and remove base template inheritance from that template

Great. It worked.
Why didn’t I think of that myself?
:person_facepalming:

Thanks for your help!