Blow‐up solutions for localized reaction‐diffusion equations with variable exponents