can you elaborate on which pedal this is please? and the car make, model and year
I'm assuming its the brakes
so in which case I'd start by jacking the car up so you can check that each wheel turns freely to ensure no wheel is binding up
if they are binding then
I'd strip the calipers down and check that the pads are in square and true with no debris in the mounting slots, also inspect the caliper mounting faces for any dents, burrs, or debris which would cause them to be bolted up out of true, also remove the disc and do the same for its mounting face on the upright and inside the disc.
If you still have an issue then it could be a flexible brake line has partially collapsed and is producing a one way valve, this can't always be seen from the outside but you can test to see if there's any residual pressure in that caliper by cracking off the bleed nipple after stamping on the brake a few times
Another possibliity is that one caliper is sticking slightly so the piston isn't retracting on its seals
in which case that caliper will need rebuilding with new seals or replacing