session.execute("INSERT INTO foo (bar) VALUES (%s)", "blah") # wrong
session.execute("INSERT INTO foo (bar) VALUES (%s)", ("blah")) # wrong
session.execute("INSERT INTO foo (bar) VALUES (%s)", ("blah", )) # right
session.execute("INSERT INTO foo (bar) VALUES (%s)", ["blah"]) # right
値(変数)が1個の場合は、3行目か4行目のように書く。3行目のようにタプル表記の場合には最後にカンマが必要 (pythonのタプルの仕様)。リスト表記(4行目)ではカンマ不要。
参考: https://docs.datastax.com/en/developer/python-driver/3.25/getting_started/#prepared-statement