I also did not know the large accounting firms offered that type of services, so that was new. I have read though that I should be careful with them as I might end up with a Junior initially. I will leave that solution open though.
Also make sure you don't tell a Swedish lawyer something like "Maybe I can sell my apartment to my brother and still stay there when I'm in Sweden..."
Not sure about the exact rules, but they may have to report you to the tax authorities for such things. They may even have an obligation to report you for "aggressive tax planning", even though what you're planning is legal.
I have found two possible advisors online who are familiar with Swedish law, I found them prior to creating this topic actually. They seemed mostly focused around Cyprus
If they are not licensed to advise on Swedish law, make sure you double check everything with a Swedish tax lawyer.
I hoped for receiving different idea structures here where Dubai is involved for 5-6 months (avoiding the super hot period). Example someone with a more different view on things and how to take advantage of perhaps 2+ countries and split the stay between them successfully
You can do whatever you like as long as you are no longer tax resident in Sweden and there's no company or office (permanent establishment) in Sweden.
It's very easy to get tax residency in Dubai, 5-6 months would be plenty for that.
Cyprus and Malta are two of them which I can't stay in longer than 30-60 days at most per year, I would just go crazy otherwise.
60 days in Malta would be enough for tax residency in Cyprus, but why bother if you like Dubai more and you don't need access to the Cyprus tax treaty network (which wouldn't help you against Sweden anyway).
I was hoping to hear about solutions where I could stay in Sweden,
Spain, Portugal or Dubai and continue to operate my company from there as many days as possible
Spain is a high tax hellhole like Sweden. You could look into the Beckham law or the Italian "impatriate" tax incentives, but I doubt it would make sense, and I also don't know if you can really trust them.
Portugal might make sense, but there's no tax treaty with Sweden anymore, so then you might as well move to Dubai. Unless you like Portugal more. But Portugal's NHR system always has some risk that they might change the interpretation of the law and come after you anyway. So I would still prefer Dubai.
Just live 5-6 months per year in Dubai (ideally 183+ just in case), set up a new company here. Then you can still go to Sweden in the summer and for things like Christmas and travel the world the rest of the time. That lifestyle is very common here.
But please make sure that your transition from Sweden to wherever is set up well, in terms of how you liquidate the existing company. It might even make sense for you to move from Sweden to a treaty country for some time (e.g. live in Estonia or Cyprus for half a year), and then move to Dubai. Or maybe you should sell your company to a holding company before you move to Dubai, something like that. The thing to really work out with a competent lawyer is how to liquidate your Swedish company/get the money out paying as little tax as possible. If you just move to Dubai and take out dividends or sell your Swedish company afterwards, there could be a lot of Swedish taxes.
One other country you could consider is Switzerland, which is also very popular with rich Scandinavians. The taxes and cost of living would still be quite high, but for a lot of people it's a good compromise.