One argument I’ve heard is that according to God, in the bible, His name is Yahweh or I Am, also Jesus or Jesus Christ, and therefore anything else like the other typical curses are not taking His name in vain because they are not technically His name. I argued that God is His name as well. The response was that it’s not because it’s not His name according to Him.
These links should answer your question about taking the Lord’s name in vain. If you have any further questions or concerns that are not answered by these links, please contact Catholic Answers directly.