Check If String Matches Regex Python