You've either got the wrong tail/brake light bulb fitted, or the bulb holder is all corroded up.
Change both the tail light bulbs for correct double filament ones and it'll cure it.
The flickering is quite common on ST170s, just turn the brightness of the dials down a bit and it shouldn't do it.