There's like 8 different vitamin Bs
In particular, deficiencies in B vitamins, i.e., B1, B6, B9, and B12, have been linked to depression, as they are essential for neuronal function [78,79,80]. They also have a protective effect against hypercysteinaemia, associated with an increased risk of mood disorders [81].
(and yes i knew about vitamins possibly helping but wasnt 100% sure)