There are a couple of models like this on this site but they are made for fixed dimensions and designed for flexible filaments. I needed non-standard dimensions and I only have non-flexible PETG, so they are not good for me. PETG bends well with thickness of no more than 1.5-2 mm and breaks when it is thicker, so I designed this model that takes into consideration this issue. Besides, it is parametric in FreeCAD, i.e. you only need to change a few values in a spreadsheet to generate a new model for your custom size. No need to edit the sketches directly.
I made 22-to-30 mm spacer with 10.4 mm thickness for my camera mount (see photos).
I also made universal versions 22.2 to 31.8 and 25.4 to 31.8 mm with 35 mm thickness.
If you need other dimensions, you can change the bold values in the table:
The author marked this model as their own original creation.