Is there a tailwind pattern that can include any modifiers written like this? component--modifier?
The modifier is dynamically concatenated. So with twig logic it looks like this {{ modifier ? 'block--' ~ modifier }}. Which is why it isn't being compiled.
The pattern needs to be [any_component_name]--[any_modifier_name]
So basically the middle bit is what needs to be recognised.