If the rubber tears when you get on, check how it's held, the edges of the metal base and where your foot goes. Simply changing the material may not remove a sharp contact point.
Choosing a replacement
An old report that the original rubber is only sold as an assembly isn't the current catalogue. Ask for the part number by VIN and whether it can be supplied separately. An alternative is chosen by shape, retention and how the folding footpeg works, not just by length.
After replacement
The pad mustn't slide, pull out or interfere with folding. Smooth, wide rubber may hold a wet boot less well; metal teeth transmit vibration differently. Compare against your needs and footwear.
If the bracket or the peg itself is damaged, a new pad doesn't make the assembly sound. After a fall, check for cracks separately. On a new bike, keep photos and find out the seller's decision before any homemade filling or gluing.