To do this with awk you can use command like:
awk '{gsub("file",""); printf "/dev/loop%s ", $0}' <input file>input_file
or
awk '{gsub("file","/dev/loop"); printf "%s ", $0}' <input file>input_file
It replace file with nothing and then print /dev/loop concatenated with the number/string
To add in array you can use:
array=( $(awk '{gsub("file",""); printf "/dev/loop%s ", $0}' <inputinput_file) file>)