Exactly. If your doctor tells you that your symptoms are probably just anxiety, find another doctor. (Yes, anxiety is a real thing, but it's used way too often to dismiss symptoms a doctor doesn't understand.)
Even if it's anxiety, as a doctor, give something tangible, if you know the inner workings of the body, you can point at improvements. Not just "in your head, bye"