The Bible says many things, some literal, some allegorical, some metaphorical.
Can we be sure which are which? Not really, since we don’t have the source documents, and stuff gets lost between copies, and we’re relying on translations of rumours from thousands of years ago – which is usually read with little to no understanding of how language was used at that time.
Let’s look at the context of that scripture:
Jesus is speaking to the multitude here, so we’re starting at Matthew chapter 23, verse 2:
Saying, The scribes and the Pharisees sit in Moses’ seat: All therefore whatsoever they bid you observe, that observe and do; but do not ye after their works: for they say, and do not.
Translation: These here Pharisees are hypocrites – they want you to follow their instructions but they don’t even follow their own commandments.
For they bind heavy burdens and grievous to be borne, and lay them on men’s shoulders; but they themselves will not move them with one of their fingers. But all their works they do for to be seen of men: they make broad their phylacteries, and enlarge the borders of their garments, And love the uppermost rooms at feasts, and the chief seats in the synagogues, And greetings in the markets, and to be called of men, Rabbi, Rabbi.
Translation: When the Pharisees do work, it’s not the manual labor – they make other people do that – they do things so that it can be seen by other people, so those people will look at them and think, “Wow! Look how awesome they are! We should learn from them!” (Rabbi literally means “teacher”)
But be not ye called Rabbi: for one is your Master, even Christ; and all ye are brethren. And call no man your father upon the earth: for one is your Father, which is in heaven. Neither be ye called masters: for one is your Master, even Christ. But he that is greatest among you shall be your servant. And whosoever shall exalt himself shall be abased; and he that shall humble himself shall be exalted.
Translation: But don’t fall for this bullshit, and don’t get conned into thinking this is the best way to serve God. Be humble, learn, and serve, and don’t be a hypocrite, and you will be praised for it, and people won’t think you’re an asshole