Depending on how much metal is available, you could try grinding spanner flats on the axle. You’d need to get them very parallel, and so that a spanner fits snugly. Then a pipe over the spanner for extra leverage (or stick it in a vice). But I doubt most pedal axles are thick enough to get any decent purchase on, without twisting the axles itself.
Pedals are one of the most common things that can be a bugger to remove. Often, because some idiot has given it too much welly when installing ( I never give it too much, and I’ve never had a pedal fall off), the thread hasn’t been given a dab of great/copperslip, or simple corrosion from being left in a damp environment. Or a combination of all three.
I’m not a fan of pedals with only a hex key fitting, but if no choice, then grease the threads well, and don’t over tighten!