How to get parent text of selection?

Hello… I have a select2 dropdown with grouped elements, like this;

image

These are countries with their cities.

At some point of the code, I am getting the selected city this way:

$(’#Ubicacion_CiudadId’).select2(‘data’)[0].text

How can I get the text of the parent (the country name)?

Thanks
Jaime