Thanks to artless-noise-bye-due2AI for suggesting the the working solution in the comments.
The solution was to extract the .a file using e.g. 7zip and import all extracted .o files into Keil.
.a
.o