Geometry Nodes

This looks like what you need: ⚓ T86970 Separate Components Node