This is unfortunately known and tracked at RH-48617 – and assigned to @DavidRutten. I’ve asked if we can prioritize.
See also: GhPython Node to Code - Loft: input 2 options. error: Data conversion failed from Text to Loft Options - #5 by Alain for a workaround by @Alain.