I have a fix: [Containers] fix DenseAxisArray with Vector key by odow · Pull Request #3064 · jump-dev/JuMP.jl · GitHub
It might take a bit to get a new release, but you can fix your code by adding this function to your script, just after using JuMP. Once we update JuMP, you can remove it.
function Base.getindex(
x::JuMP.Containers._AxisLookup{Dict{K,Int}},
key::K,
) where {K<:AbstractVector}
return x.data[key]
end