Very likely a feature request, but you cannot specify any NBT data into those items, which makes me believe this is a bug/oversight.
For example:
Try to add NBT tags to
/scoreboard objectives add Test minecraft.used:minecraft.potion/scoreboard objectives add Test minecraft.used:minecraft.potion❌ It doesn't let you.
You cannot for example have a score that only works with speed potions.
It doesn't support NBT because this criterion is statistic-based. The game won't record the NBT of all the items you've used for a statistic. Because if the game do this, the save files' size will become too large.
It's true that the scoreboard currently has no criterion that supports nbt, but that is a feature request rather than bug repport. You can put this suggestion in https://feedback.minecraft.net/