Welcome to the forum!
Is it a bugeye? I’ve heard of unmodified bugeye wrxs comfortably doing 300k it really depends on the previous owners.
If it is warmed up, run on the correct fuel, serviced regularly and not thrashed at every traffic light the ej205 turbo is reliable. There are a few small maintainable items that Subaru’s require over time but they really don’t ‘break down’ often in stock form. (Rocker cover gaskets, timing belts etc)
If there are signs it has been previously modified poorly, (ie. boost tap, podfilter) then I would steer clear.
If like you said the previous owners had it for 4 and 5 years and they have service history then I would say it is a fairly safe buy. Always worth getting it checked over by a Subaru specialist mechanic before buying if you don’t know what to look for yourself.
Good luck!