Per Wikipedia [1], legal proceedings started in 2018, and the actual court hearing stage happened over the past month. It's not clear how much of that time was waiting for whatever reason, versus ongoing back-and-forth motions and such.
[1] https://en.wikipedia.org/wiki/Shape_of_You#Copyright_trial