From healthline.com:
How long does it take for an intercostal muscle strain to heal?
For a mild strain, you may be able to return to normal activities within three to six weeks with basic home care. For more severe strains, recovery can take several months. In severe cases, surgical repair and physical therapy may be necessary. With proper treatment, most people recover completely.