High-resolution spectro-polarimetry of a flaring sunspot penumbra