Also, those with cancer / recent cancer are at risk of blood clots. You could well have a pulmonary embolus - a clot in the lung vasculature. This is usually sharp and sudden and occurs on inspiration when you take a breath. Some experience shortness of breath with this, however, some do not.This is all very good reason to be checked out.
Hope all turns out to be nothing, but best to get anything unusual checked out.
Tammy