Use addressable LEDs like WS2812B or similar.
You’d need only 1 pin (plus power and ground) to control hundreds of them. They can be boughtare available individually or as part of an LED strip (which can usually be cut into smaller strips or individual LEDs).