You can get the output in json and use jq
jq
pactl -fjson list sink-inputs |jq '.[]|select(.properties["application.name"] == "app-name").index'