Those "extensions" are actually modifiers. The syntax comes (is copied) from the Tenex C shell. More info here- https://web.cs.elte.hu/local/texinfo/zsh/zsh_23.html