Freemasonry’s Removal from the Code of Canon Law "During most of the twentieth century, the prohibition on Catholics being Freemasons was well known, as it was explicitly mentioned in the the 1917 Code of Canon Law. Canon 2335 conferred the penalty of excommunication on any Catholic who was the member of a sect which conspired against the Church or the State, including Freemasonry. However, as time progressed, various clerics began to engage in an appeasement approach which caused confusion among the faithful – and indeed, among the clergy themselves...." Freemasonry’s Removal from the Code of Canon Law
This is just as stupid as if the Church said don't believe in God, and you will get to Heaven. Freemasonry was probably removed because Biden just became a member.