The caps are soft alloy. Need a good quality allen key. Mashed up one and ended up cutting notches in it to get a flat blade in to undo. Then I got some spares. I also use copper grease on the cap threads for next time, and don’t do them up stupidly tight.
The official service kit I think comes with replacement caps also. They get trashed by scrapes and rock strikes anyway.
Anyway, end caps are normal thread. Once off the nut under it will be the opposite to the thread on the other end of the axle, but remember the threading is different on each pedal.
If you read guides on pedal thread direction and which way to turn, be mindful that they usually show the pedal wrench direction viewing towards the bike, not from the hex socket side which can confuse you.
Or… easy way: tighten towards the front of the bike, loosen towards the rear. Works for both pedals, whatever way you look at them.