Expanded regex to check for valid file extensions