I was getting some errors because SkSurfaces and skgpu 'does not exist'. Looking at the documentation, it seems SkSurfaces::RenderTarget had been deprecated. So unfortunately I had to recur to ChatGPT.
The fix is to use SkSurface::MakeRenderTarget and SkBudgeted::kNo. The imports also have to be changed from include/gpu/ganesh/gl to include/gpu/gl.
If this was properly updated other people won't be hours debugging like I was!
Thanks!