Cooling fan is always on, even runs when engine is cold

Probably a stuck temp sensor.
Typically on the bottom of the radiator.
Could also be a stuck relay, but I’m not a Subaru expert.
Unplug the connector to the temp sensor. If it keeps running it’s a relay. If it stops it’s the sensor.