Why do I get a gas smell inside the car after fueling? on 1998 Subaru Impreza

I have put gas in the car three times since I bought it. The more gas I put in, the stronger the smell. However, the car only has the gas smell for a few hours after fueling. Any other time driving the car there is no smell

Its hard to say without being able to look at the filler neck and hose area to see if there is a leak. You have to visually inspect the gas tank and filler neck to see if there is any stains or leaks. I just looked I don't see any relevant service bulletins or recalls.