Variable-exponent reaction–diffusion equations with a special medium void and damping effects