How to create a variable with submenus variables in blueprints?

Just create an array variable and make it editable and exposed on spawn. Then you add the elements you want by clicking on the + button