The regex `::MachineTag::NAMESPACE_AND_PREDICATE` does not contain begin and end markers so this match isn't going to work correctly, it should be `/^#{::MachineTag::NAMESPACE_AND_PREDICATE}$/` instead.