AFAIK in Sweden you need a managing directory who is resident in the European Economic Area (EEA), not necessarily in Sweden.
You can apply for temporary exemptions, but they are temporary and you are supposed to have good reason.
There’s no explicit requirements that any particular position must be held in Sweden, you can be a VD in the EEA for example, but you still need at least one legal responsible person to be domiciled.