Not guaranteed to be the problem. The pads could be stuck in the caliper, the piston could be seized or as you stated the flexi may be corroded inside causing a valve which won't let the fluid back out. I would suggest removing the brake caliper and pads, checking the piston and cleaning the slide area for the pad. If this doesn't cure it, change the flexi. They don't cost a fortune and are simple to change.