Born in Cefn Hengoed, Caerphilly, Flanagan began his career as a junior with Ystrad Mynach. After being selected for Wales at under-16 level, he was signed to the Pontypridd academy in 2002. He made his senior debut for Pontypridd during the 2003–04 season and was picked up by the Cardiff Blues academy at the start of the 2005–06 season. That proved to be his annus mirabilis, as he played for Wales at under-21 level, made his regional debut for the Blues and also scored the game-winning drop goal in injury time at the end of the 2006 Welsh Cup final against Neath.[2]
After four years playing regional rugby with the Blues, Flanagan signed a three-year contract with the Ospreys for the 2010–11 season, where he would compete with Dan Biggar and James Hook as the team's starting fly-half.[3] However, he left the Ospreys after just two years in July 2012,[4] and returned to Pontypridd.[5] Two years later, he left for Newport RFC, where he had already been working as the head of the Dragons academy at Newport High School.