The pain in the right lower back ribs may be caused by the following reasons: 1) gallbladder stones, cholecystitis, 2) right lower pneumonia, 3) intercostal neuralgia, 4) neuromuscular soft tissue injury. So you can do an ultrasound of the liver, gallbladder, pancreas, and spleen first, to make sure that it is not gallbladder stones or cholecystitis. If gallbladder stones and cholecystitis are ruled out, a chest X-ray can be taken to see if it is caused by right lower pneumonia. If pneumonia is ruled out, it may be considered that the pain is caused by nerve or muscle soft tissue injury, which can be treated with local anti-inflammatory and analgesic drugs, and at the same time, pay attention to rest, and can be relieved by localized hot compresses.