It seems that the only thing needed is a component equivalent to sp-menu, since sp-menu-item has a selected property, although I haven’t tried it. It might be faster to create it than to look for a workaround.
Added (2024-11-17):
Tried to create my own sp-menu equivalent using sp-menu-item, but gave up because it was difficult to reproduce the appearance of multiple selections.