It depends where you live in Sweden. The housing market in Stockholm is quite expensive. For apartments, the average price per square feet is $950. You typically buy a share in a housing cooperative. On top of the buying price you also have to pay a monthly fee to the cooperative and that will cover shared building costs.
I also have a rental apartment but those are rare these days.