Let me expand on this a bit.
Subaru has a few known issues in the wrx and sti line. Piston failure and bearing failure. The class action lawsuits came over the bearing failure and flaws in the design of the oil system. If you Google STI reliability i guarantee it'll be at the top of the list.
Second is piston failure. Every single thing you change on the engine requires a new tune. Intake? New tune. Tgv deletes when they fail? New tune. Intercooler, ideally new tune. Turbo back exhaust, new tune. Nobody tunes as good as Subaru and the known issues with the glass pistons means even a little knock can send you buying a new engine
There are plenty of folks who get mileage on modified vehicles, but there are enough who don't that i wouldn't trust one as my only driver.
The FA engine in the 2015 and up introduced a new failure point. The rods. As far as I'm aware they don't become a real issue until you get up in the 400awhp range, but it's worth being aware. Because of the direct injection they are a little less prone to detonation and the pistons are much less likely to crack a ring land. Oil starvation failures are still not unheard of.
The FA engines also introduce a high pressure fuel pump. Dandy item that's crazy expensive to replace, but also they tend to be pretty reliable. Unless you decide on e85. High ethanol fuels over e50 will burn it up much quicker than you would want. Not an issue for most owners or even tinkerers, but for some it's an important thing to note.
Before 90k miles on my 2011 the exhaust was replaced from the downpipe back, exhaust gaskets replaced multiple times, the tgvs failed, turbo inlet failed, intercooler to throttle body hose failed, the secondary air pump was going, the coils were dead, and my aftermarket downpipe had to have the flanges repaired twice.
Those are all seemingly normal things but each one causes issues that will quickly compound into engine failure if not addressed asap.