Unfortunately, hatching an Aerodactyl from the egg doesn't count, because you need to catch one of the pterodactyl-inspired Pokemons.
What is Aerodactyl catch rate?
Catch rate. 45 (5.9%)
How do you get Aerodactyl in 2021?
Aerodactyl can be defeated by solo Trainers. However, to avoid having to relobby, be sure that you've chosen the best counters with their most useful moves unlocked. Using the Circle Lock Technique to guarantee Great or Excellent throws, along with Golden Razz Berries, is the best way to catch Aerodactyl.