you should have mentioned your age because that could be easier to comment on the diagnosis. anyway there are many causes of soft tissue
swelling, if any bone tumor
then also benign tumor
can not be ruled out. but history of three months is suspicious. please make me informed about the X-ray report. further investigation can be planned based on this. visit a surgeon.