FPackageName::IsValidObjectPath

Returns true if the path starts with a valid root (i.e. /Game/, /Engine/, etc) and contains no illegal characters.