Calculator here:
We estimate it would take $4.84 on June 16, 2022 to have equal purchasing power with $0.25 on June 16, 1918.
For the 1918 price, see here.
You can see from this chart that the price of gasoline in 1918 was indeed about $0.25. Wholesale prices averaged about 20.6 cents in 1918.
As of three days ago the official government average actual price at 900 retail outlets was $5.107.
GasBuddy has the USA average at about $5.03 this morning.