Functions as an attributive noun modifier, e.g. “retake fee”, so an adjective part of speech is needed.
Definitions
Relating to or designating a repeated attempt, especially an examination, recording, or filmed scene. All students must pay a retake fee before sitting the exam again.