The scene was shown at the A Celebration of Harry Potter event in Orlando over the weekend. The presenter mentioned that J.K. Rowling wrote the song, but three months ago David Yates, the movie's director, told us that Alison Sudol wrote it. Which is confusing AF but who cares, at least we have it. ¯\_(ツ)_/¯