Straighten UV Vertices Maintaining Relative Distance
You could try to start with a long rectangle in the 3D view (imagine your shape made flat), then use a curve modifier to make it similar to your picture. Doing that the shape stays straight and allows you to make the UV part straight too (as long as the modifier is not applied).