This is a substitution cipher. Used this website to find the flag: https://www.guballa.de/substitution-solver