It's impossible to know this without knowing the exact cause of your pain. You are assuming it's ligaments, and it may be, but it could also be prostatitis, an anal fissure, or a host of other things.
When was the last time you were examined for this? If it's been awhile, it's time to follow up. Stop doing the kegels unless you are advised to do so by a doctor.
I hope you get some answers and let us know what happens.