I just bought a 40mm F2.8 STM pancake lens, and it seems to have a decentred lens element. You can take a look at a random test image I took here:
https://i.imgur.com/UVbTG7M.jpg
The image was taken at F5.6. As you can see, the left side and middle look like they are in focus (from the closest...