I used to work at a place that was able to hold onto a sizable proportion of its technical talent for many years at least in part by allowing remote work.
In the minority of cases this was an in-office employee who went for remote either indefinitely or for a period of a year or two so they could go live somewhere else.
In the majority of cases it was someone in another location who was hired. They had the option to move to where the office was (including help with the visa system if necessary) or just staying where they were and working remotely. If a person is particularly attached to where they currently live and that area happens to have relatively modest employment options for technical people then chances are you will retain that person for a very long time.
I would note that whether retaining staff for 5+ years for reasons like the lack of similarly well paying options elsewhere is somewhat debatable. Holding onto staff for a long time is not in and of itself always a good thing.
In the minority of cases this was an in-office employee who went for remote either indefinitely or for a period of a year or two so they could go live somewhere else.
In the majority of cases it was someone in another location who was hired. They had the option to move to where the office was (including help with the visa system if necessary) or just staying where they were and working remotely. If a person is particularly attached to where they currently live and that area happens to have relatively modest employment options for technical people then chances are you will retain that person for a very long time.
I would note that whether retaining staff for 5+ years for reasons like the lack of similarly well paying options elsewhere is somewhat debatable. Holding onto staff for a long time is not in and of itself always a good thing.