Exploring the planetary-mass population in the Upper Scorpius association