I have a middle ear infection doctor gave me a prescription for amoxicillin, need second opinion?

I’m a 24 year old female. I have a really bad earache. I went into an insta care on Saturday for it, and the doctor told me I have a middle ear infection. He gave me a prescription for amoxicillin and told me to take Ibuprofen and use heat packs on it to help the pain. Two days later, I am in excruciating pain. My ear hurts to the touch, and the lymph node next to my ear is really swollen. I can’t open my mouth without it hurting. I am wondering if I got the wrong diagnosis, and if there is something else I can do to relieve the pain. Thank you,