Those are acorn nuts and usually installed in places where there is a lot of corrosion expected. They cover the end of the bolts to keep the threads clean, undamaged and hopefully rust free. They are also somewhat decorative and used to dress up the look of parts. Also useful for protecting vulnerable items from getting snagged on the end of an exposed bolt.
Should be easy to get. Doesn't Mikes XS sell a bunch?
BTW, 12 X 1.25mm lug nuts work on the rear footrest mounting bolts. Dresses them up a bit.