It depends upon the Subaru.
Imprezas, of which the Forester and Rex are examples, are still built entirely in Japan AFAIK.
The various Legacy models, including the Outback, have been built for years in what was once a joint venture Izusu/Subaru plant in Indiana that was later taken over entirely by Subaru. The smaller Outback Sport was an Impreza and was built in Japan. Many Toyota Camrys have been assembled in the Indiana plant as well, although I believe this has recently ended.
AFAIK, the split continues with the Legacy platform models built in Indiana and the Impreza platform models built in Japan.
Your '06 Subaru was built in Japan as was our '09, while the beater '99 Legacy we have was built in Indiana.
We've had two beater Subies, the '99 and an earlier '96 Impreza and have found them to be pretty tough cars mechanically. In particular, the automatic and the AWD seem to be unbreakable in the hands of young male drivers and there's nothing wrong with either the 2.2 or the late 2.5 EJ engine. Consider that there are many years of Toyota Camrys to avoid due to either sludge-prone engines or failing head bolts and there is at least one generation of Accord that belongs on the ignore list in automatic form and this helps to put the problems that are ascribed to Subaru cars into perspective. Consider also that your turbo Forester may have been ridden hard and put away wet before it came into your hands.
The OP appears to have gotten a car with an assembly error that it took a dealer an absurd amount of time to find.
Of course, had he bought the car from that dealer, they might have assigned a sharper and better paid tech to the car and the problem might have been found and resolved far more quickly.