Well generally an anti-inflammatory like ibuprofen or naproxen would work best for costochondritis but obviously that isn’t medical advice, it depends whether you are OK taking ibuprofen, whether you have any contraindications etc.
If you do take it, make sure it’s not on an empty stomach.