That thing is all kinds of messed up (nut and bolt orgy holding it in). The peg is twisted sideways too.
If the bracket is okay, the peg needs to be repositioned correctly (rotated up and down) and a new screw and cushion needs to be installed.
You at least need Part #8 & 10 (screw and cushion). You may also need 6 & 12 (bar and "washer" as they call it).
You'll have to remove the current mess and see what you got...
See the parts diagram here.
https://www.partzilla.com/catalog/suzuki/motorcycle/2005/boulevard-s40-ls650/...