Here is a note from https://en.wikipedia.org/wiki/Pharisees
No single tractate of the key Rabbinic texts, the Mishnah and the
Talmud, is devoted to theological issues; these texts are concerned
primarily with interpretations of Jewish law, and anecdotes about the
sages and their values. Only one chapter of the Mishnah deals with
theological issues; it asserts that three kinds of people will have no
share in "the world to come:" those who deny the resurrection of the
dead, those who deny the divinity of the Torah, and Epicureans (who
deny divine supervision of human affairs). Another passage suggests a
different set of core principles: normally, a Jew may violate any law
to save a life, but in Sanhedrin 74a, a ruling orders Jews to accept
martyrdom rather than violate the laws against idolatry, murder, or
adultery. (Judah haNasi, however, said that Jews must "be meticulous
in small religious duties as well as large ones, because you do not
know what sort of reward is coming for any of the religious duties,"
suggesting that all laws are of equal importance). In comparison with
Christianity, the Rabbis were not especially concerned with the
messiah or claims about the messiah or ranking the laws in importance.
and further
The Pharisees believed that the idea that all of the children of
Israel were to be like priests was expressed elsewhere in the Torah,
for example, when the Law itself was transferred from the sphere of
the priesthood to every man in Israel.[55] Moreover, the Torah already
provided ways for all Jews to lead a priestly life: the laws of kosher
animals were perhaps intended originally for the priests, but were
extended to the whole people;[56] similarly the prohibition of cutting
the flesh in mourning for the dead.[57] The Pharisees believed that
all Jews in their ordinary life, and not just the Temple priesthood or
Jews visiting the Temple, should observe rules and rituals concerning
purification.
Thus, in summary, the thing that characterised Pharisaic observance was their punctilious observance of the law in all its minutiae. Jesus railed against such attitudes in the pronouncement of the seven woes against the Pharisees in matt 23, eg, V23: "Woe to you, teachers of the law and Pharisees, you hypocrites! You give a tenth of your spices--mint, dill and cumin. But you have neglected the more important matters of the law--justice, mercy and faithfulness. You should have practiced the latter, without neglecting the former."
In modern terms, this is known as extreme legalism, often very highly discipled - wanting to observe the law very carefully and neglecting lovingkindness.
Such a Pharisaic attitude is NOT what is described in 2 Tim 3:1-9 about the type of people in "the last days". 2 Tim 3 describes what might now be called arrogant hedonism, defiant atheism, or boastful narcissism. Now, it is true that legalism sometimes produces arrogant atheistic narcissists but certainly not always. Extreme liberals can also be arrogant narcissists as well.
Therefore, 2 Tim 3 describes a personality type and NOT a theological disposition of legalism (as were the Pharisees).