Car is a 99 Forester 2.5 liter 4 cylinder and automatic transmission. I was driving back from Washington to Portland & the car started to misfire heavy CEL flashing. Then by the the time I pulled over the car kinda kicked back into gear & the light stopped flashing. Car ran as usual on the drive back & didn’t experience anything like that again until this week and it was the same thing. Pulled over car jumped back into gear and drove normal. It it just my coils/spark plugs that need replaced, a brain fart in the system???? I’ve asked my car friends and they have no idea either.