In certain circumstances young people born outside Sweden and who have not lived there may lose their Swedish citizenship when they become 22. An application to retain it must be made when they are aged 18 to 21.
Details of these matters may be found on the Migrationsverk website.