Compile Method In Regex Python String To Date