Chronic anxiety causing rounded shoulders and my rib cage feels like it can't expand when I breathe. My upper back muscles have been sore for months.

Treat anxiety & PT. I would undergo counseling to identify and treat the source of your anxiety. You may also benefit from a physical therapist for exercises regarding posture and muscle training.
Anxiety. Is your anxiety being treated? . Medications? . Psychotherapy? . Please advise.