Fix type regex