>>2202566That was an easy one since there was sufficient background on both sides.
I resized the image to the desired dimensions. Of course, the newly added area was plain white.
I then selected the rectangle shown here in red, copied it to a new layer, and stretched it sideways.
Same with the other side.
Sometimes (though not in this case) the stretch leaves visible striations. Then you apply a tiny bit of blur.