Normally it's the shaft that the peg bolts to.
Yes, it's not unusual to bend pegs on a trail bike if you ride it on the track.
The best way to solve the problem? If it took months to happen, just a suspension upgrade might do the trick.
If you were able to bend them in a few weeks, I'd be shopping for a more air-worthy steed.
BTW, they can be bent back up. No guarantee how long they'll stay there though, unless you fix the suspension or quit jumping doubles.