sounds like its not getting enough gas...
I would start by removing the rear seat and under the rear passenger side seat is the fuel pump remove it and lift it out the tank and check if your strainer/aka/ in tank filter if its dirty or clogged,
mine was clogged and did the same and just ran it with the strainer removed..
Or it could be dirty fuel injectors
or the fuel filter and its located at the front driver side wheel under the shroud
it might be dirty or a weak pump but I would only suspect that the pump is weak only after you cleaned the injectors and checked the fuel filter
And strainer
I also had plugs that looked new but were fouled even when cleaned they were still causing a rought idle but only buy new ones after you checked everything I mentioned.
To clean the injectors I usually buy a can of carb cleaner and use a tire valve stem Cap and drill a hole on top the size of the can red straw
and put the straw in and tape it with electrical tape or super glue,
remove the fuel pump fuse and run the car till it stalls then find the fuel rail shrader valve and open it and untwist the guts and twist in your homemade piece with the straw on it and have someone start the car and rev it while your spraying carb cleaner directly in the fuel rail.
while your under the hood might aswell clean the mass air flow sensor with MAF cleaner but a dirty MAF usually just cause jerking while u press on the gas
Goodluck!