Cohomologies of derived intersections