You are OK, however as different tyre patterns will have different properties (grip levels etc) there is a greater chance of skidding. Try not to mix different tread patterns on the same axle if you can. As has been said it is not illegal though.

I am not sure how ESP systems handle this.