Spatie tags filter

I am using Spatie tags in a resource, but if I am making a filter, it lists the available tags as {"en":"MyTag"}.

Here's the code:
SelectFilter::make('tags')
                    ->label('Tags')
                    ->multiple()
                    ->preload()
                    ->forceSearchCaseInsensitive()
                    ->relationship('tags', 'name'),


This was working fine in Filament v2.

Probably there is a simple solution for this, but I could not figure it out.
Was this page helpful?