moving the opening brace regex test into main() causes pytest to miss the test function