#1527 introduced DELETE with RETURNING and used Feature.insertReturningExpressionList
within the validation net.sf.jsqlparser.util.validation.validator.DeleteValidator - the Feature.insertReturningExpressionList is part of the validation group FeaturesAllowed.INSERT and therefore only allowed for INSERT statements.
The bugfix fixes the problem with a new feature constant Feature.deleteReturningExpressionList which is part of the validation group FeaturesAllowed.DELETE.