How to concatename file names in Snakemake?
You can use join to convert the list of input file into a string. 
I think this would work as expected.:

rule run_prog:
    input: "a", "b"
    output: "output"
    run: f"prog {','.join(input)}"