Went to a local car show today My son alerted me to it, said he saw a Subaru Brat turning into the lot. The front end of this looks just like the 1985 GL 4WD wagon I had, with the spare tire in the same place. I think it was a 1.8L. Mine was a 5 speed manual, great car.
Possibly Neutral Switch. Had them go intermittent or bad, but my 5 speeds were NOT drive by wire, so would call out idle control solenoid.
Just a thought since we can't see, touch or hear your car.