I'm sorry you're going through this. The difficulty of severe, chronic, and mysterious pain is a very all-encompassing one. Find a good physical therapist. It absolutely does get better.

The body is a complex biological structure, and while it does have distinct parts, it is the holistic interaction of all of your skeletal, muscular, nervous, neurological, etc systems alongside the exterior physical demands you place on your body that produces your overall experience of it and physical therapists are the ones best trained to contextualize injuries and bodily disorders in this global manner.

As with diagnosis of a software system, it is difficult to find any objective definition of "this is what is causing the pain". Where the rubber is meeting the road is almost certainly nerves being pinched and tissue being overloaded. Much like patching a software bug at the surface level does not mitigate others like it arising, fixing these issues locally through massage, dry needling, nerve blocks, drugs, etc may not address the root of why they've arisen. Much like removing blocks from the bottom of a jenga tower affects how blocks at the top must be stacked to keep it upright, so too does a given local function affect function in other locales within the body as well as overall global function. Tightness can be caused by structural weakness elsewhere, and structural weakness can also be caused by tightness.

Much like software opinions, all of the treatment techniques people are describing in this thread are valid for certain use cases. Much like software opinions, choosing one without understanding what makes it applicable to a situation can have disastrous results. You need a good PT to help you know what makes any given technique a good idea and to point you in the right directions and to the right specialists.

Everyone's goals with treatment will be different as well. Perhaps you're only interested in not experiencing pain, and perhaps you're interested in being able to dunk a 20 foot rim and swimming the Atlantic ocean. In any case, the road to lasting health will be arduous. As a young person, please do anything you can to stave off surgery or anything that alters the structure of your body with any lever other than its own growth. The body does not decay nor produce random pains when properly cared for. Once you begin down the path of surgery you truly cannot turn back and outcomes are not good.

A good physical therapist is one that has the educational background to help you learn about your body, decide what paths are best to take, and engineer a strategy for you to take yourself down those paths. It's also vital that they are able to help you manage your attitude through it as well because they can't get you to health, they can only guide your will to get yourself to health. Unfortunately these types tend not to be the ones that accept insurance, but that produces a much better incentivizing feedback loop for them to deeply invest in getting you to health. These are the ones who have opted out of the standard accept-insurance-and-do-crazy-volume in favor of more personalized and rewarding work.

Good luck. It gets better. At 27 years old I herniated a few discs out of my back causing debilitating nerve pain that resulted in ~6 months of me needing help to get dressed and go to the bathroom all while furiously spinning wheels searching for a solution. Two years later and I'm much more informed about my body, well over the hump, and stronger than ever. No matter what your goals are with your body, you can and will get there.