Separating an object into multiple separate ones

So I have an stl file that has the bones of a leg. I want to separate each bone as it’s own object.

The way I do it now is entering edit mode selecting one vertice of a bone using select linked (ctrl+L) then inverse select(ctrl + I) and then deleting all the other vertices and then exporting the file as a bone. if you have lots of bones this is so time consuming so i imagine there is a way to just separating all linked objects or something.

thanks.

Separate selected vertices with shortcut P and the appropriate separate options