The former Yugoslavia had five legally recognized successor states.

https://treaties.un.org/doc/Treaties/2001/06/20010629%2001-3...

Thou hast well said, Yugoslavia has no successor states: For Yugo hast had five successor states; and the domain thou now hast is not thy successor state: in that saidst thou truly.