I’ve spent my almost 20 year career as a developer in a rural area and found that there are plenty of places trying to hire developers, not to mention that remote work is also available. I personally have never seen it as being all that risky.
The very worst case is that you move back to the city, which is exactly where you’d be if you never left.