Fix implementation for hash tags extraction from keys.

We now fully comply with the specifications defined by Redis.