Thank you for sharing your situation with the Wefugee Community and sorry for the rather late reply!
I am not familiar with the Swedish immigration law, but you may want to check this website of the Swedish migration agency. Here you will find some information on requirements for a spouse visa.
However, I also would highly recommend you, or better to say your wife, to seek some legal counselling. In Germany, for example, there are migration counselling offices by which people are supported in issues like yours. I am very sure that there will be similar institutions in Sweden. If you want to share your wife's location/area, I would be happy to support in finding one close to her.
All the best for you and your family,