I’m a lawyer, although not one who does IP. Coding is protected under the Copyright Act upon creation, so if you created/ published first and legitimately feel OpenAI used your code for Codex, then you should consult with a good lawyer, who specializes in this type of IP law.
This is not intended as legal advice obviously nor as an opinion on or assessment of the merits of any potential claim