I had to also remove the brackets so it would work and look like this,
context.exec = [
{ path = “pactl”, args = “load-module module-loopback” }
]
I thank you for leading me into the right direction.
For people who also have this problem, copy the pipewire-pulse.conf file from /usr/share/pipewire and paste it into ~/.config/pipewire, if the folder doesn’t exist, create one with mkdir ~/.config/pipewire in the terminal (Konsole) or with File Manager (Dolphin), then add at the end of the file
context.exec = [
{ path = “pactl”, args = “load-module module-loopback” }
]
and restart your computer.