Filter a repeating group with toggles

Hello, i couldn’t find an answer using the search, maybe someone can give me some hints. I can’t figure it out.

I’m trying to filter the content of one repeating group (list) using a second repeating group with toggles.

Like this:

How exactly would one go about doing this?

So, after a lot of trial and error, i found a solution with a custom state (list of types) and a worklow:

But it requieres to populate the list with a search for all types on every page refresh.