You can try now with the below code. Refresh the session. It will resolve the issue.
spark.conf.set("spark.jars.packages", "org.apache.spark:spark-avro_2.12:3.5.3")