I have upper back and neck pain that does not feel like a muscle strain. The pain is worse when doing standing lifts like squats. Happened for 2 weeks?

Disc or ligament. Pain lasting 2 weeks is usually not muscular. A disc bulge, a tear in the disc or ligament sprain are more likely. Avoid any activities that cause pain. Sounds like its time to see a doc for an evaluation.
Modify activity. Keep exercising, but hold off on the exercises that are associated with the pain. Alternatively try reducing weight (resistance) and repetitions, allowing your body to heal. Working with a physical therapist or training may help to work on technique.