John Salza (who I consider one of the better modern Roman Catholic apologists) has an excellent article addressing the contemporary Roman Catholic teaching on anathemas (which also refutes how some deceptive, pop-level apologists present the teaching):