Step 1: Understand the question:
Oedipus Rex is a famous tragedy of ancient Greece. We must name its playwright.
Step 2: Check option 1, Aeschylus:
Aeschylus wrote the Oresteia and Prometheus Bound. He did not write Oedipus Rex.
Step 3: Check option 2, Euripides:
Euripides wrote Medea and The Bacchae. He did not write Oedipus Rex.
Step 4: Check option 3, Sophocles:
Sophocles wrote Oedipus Rex, Antigone and Oedipus at Colonus. So this is correct.
Step 5: Check option 4, Aristophanes:
Aristophanes wrote comedies such as The Frogs and The Clouds. Oedipus Rex is a tragedy, so he is wrong.
Step 6: Decide:
Oedipus Rex was written by Sophocles, so option 3 is correct.
Final Answer:
Option 3 is correct.
\[ \boxed{3} \]