Interfaces can be named almost anything on modern systems.

The old regex needlessly restricted the interface names beyond what modern systems allow.

My own system has 2 interfaces named for what they do - ethLAN and ethWAN.

Further improvment might be to actually verify the requested interface against the list of existing interfaces.