The verse says that the law was nailed-Jesus was not the Law. The Bible says he was hanged on a tree.
Again you are assuming ancient writers could not or did not use analogies and allegories.
This is Paul saying “When Jesus was nailed to His cross, our condemnation under that law was also nailed there.”
Galatians 3:13 - "Christ redeemed us from the curse of the law by becoming a curse for us, for it is written: "Cursed is everyone who is hung on a tree.""
Ephesians 2:15 - "...by abolishing in his flesh the law with its commandments and regulations. His purpose was to create in himself one new man out of the two, thus making peace,..."
Proverbs 25:2 - "It is the glory of God to conceal a matter; to search out a matter is the glory of kings."