In Pi-Hole (current version pre-V5) you cannot whitelist wildcards. Only exact domains can be whitelisted.
The reason for this is that whitelisting a domain makes it "gravity proof". When gravity is updated, a list of domains is created from your subscribed blocklists. These are sorted, duplicates removed, and then all the domains in your whitelist are removed from gravity.
Since gravity is a list of single domains, the whitelist is the same.