The original denominator excludes x=2. Factoring the numerator gives
x2−4=(x−2)(x+2).
For every allowed input, the formula simplifies to x+2. An output of 4 would require
x+2=4⟹x=2,
which is excluded. Every other real output y is produced by the allowed input y−2, so the range is (−∞,4)∪(4,∞).