Well done on the personal development you have done to support yourself emotionally!
But wherever you are with that now, anyone is allowed to end a relationship at any time.
I hope he didn't encourage you to move and become dependent on him knowing he was unsure about the relationship. That would be awful. Although, even if things were good when you moved ultimately it's your responsibility to consider the risk if it doesn't work out.
Whether he can force you to sell the house is a legal matter in that country so I don't think anyone here can advise without knowing the country and their laws.
Can you contact your old employer about returning? They may have a vacancy coming up and be keen to avoid recruitment costs.
What is stopping you from working in your current country?
I think if you moved for your boyfriend (it sounds like it if you're not working?) then it would be fair of him to allow a period of time for you to sort out a job, or moving back.
But ultimately - if he wants to split up he can, and you need to face that and start working on the practicalities of getting a job and selling the house.