how to drive 25 led with 5 pcs of 595 shift register?

I think you want a little bit of logic at each LED.
Have a little 8-pin uC every meter to control the LED and minimizethe wiring in the tube.